Enlightenment CVS committal

Author  : ravenlock
Project : e17
Module  : libs/epsilon

Dir     : e17/libs/epsilon/src/lib


Modified Files:
        epsilon_thumb.c 


Log Message:
Avoid null pointer. Issue warning to stderr when recv a NULL pointer

===================================================================
RCS file: /cvs/e/e17/libs/epsilon/src/lib/epsilon_thumb.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- epsilon_thumb.c     2 Feb 2007 12:28:45 -0000       1.8
+++ epsilon_thumb.c     20 Apr 2007 04:03:40 -0000      1.9
@@ -150,6 +150,11 @@
 
        data = NULL;
 
+       if (!thumb) { 
+               fprintf(stderr,"!!Warning!! NULL pointer (*ev) : 
epsilon_event_free(void *data, void *ev)\n");
+               return;
+       }
+
        if (thumb->path)
                free(thumb->path);
        if (thumb->dest)



-------------------------------------------------------------------------
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

Reply via email to