|
From: Andrew M. <fit...@us...> - 2007-09-11 14:57:02
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv18011 Modified Files: Tag: radmind-1-10-0-exclude-branch list.h Log Message: Check for null list. Fixes fsdiff -1 crash. Thanks to Thomas Kula for reporting the problem. Index: list.h =================================================================== RCS file: /cvsroot/radmind/radmind/list.h,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** list.h 29 May 2007 23:17:48 -0000 1.6 --- list.h 11 Sep 2007 14:56:57 -0000 1.6.2.1 *************** *** 18,22 **** }; ! #define list_size( list ) ((list)->l_count) struct list * list_new( void ); --- 18,22 ---- }; ! #define list_size( list ) ((list) ? (list)->l_count : 0 ) struct list * list_new( void ); |