Enlightenment CVS committal Author : ravenlock Project : e17 Module : libs/epsilon
Dir : e17/libs/epsilon/src/bin Modified Files: epsilon_thumb_test.c Log Message: Avoid null pointer. Issue warning to stderr when recv a NULL pointer =================================================================== RCS file: /cvs/e/e17/libs/epsilon/src/bin/epsilon_thumb_test.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- epsilon_thumb_test.c 4 Aug 2006 02:35:55 -0000 1.4 +++ epsilon_thumb_test.c 20 Apr 2007 04:02:34 -0000 1.5 @@ -18,8 +18,11 @@ Epsilon_Request *thumb = event; incomplete_thumbs--; - printf("\n! EVENT ! THUMB %s -> %s COMPLETE ! STATUS %d ! %d REMAINING !\n\n", + if (thumb) + printf("\n! EVENT ! THUMB %s -> %s COMPLETE ! STATUS %d ! %d REMAINING !\n\n", thumb->path, thumb->dest, thumb->status, incomplete_thumbs); + else + fprintf(stderr,"!!Warning!! NULL pointer (*event) : thumb_complete_cb(void *data, int type, void *ev)\n"); if (incomplete_thumbs < 1) ecore_main_loop_quit(); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs