Enlightenment CVS committal Author : titan Project : e17 Module : apps/ephoto
Dir : e17/apps/ephoto/src/bin Modified Files: ephoto_exif.c Log Message: Check to make sure img points at something. =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_exif.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- ephoto_exif.c 11 Mar 2007 14:10:42 -0000 1.10 +++ ephoto_exif.c 11 Mar 2007 14:13:11 -0000 1.11 @@ -56,7 +56,7 @@ /*Get the current image*/ static const char *get_image(void) { - const char *img; + const char *img = NULL; if (VISIBLE(em->fbox_vbox) && em->currentf) { @@ -70,10 +70,7 @@ { img = ewl_image_file_path_get(EWL_IMAGE(em->eimage)); } - else - { - return NULL; - } + if(!img) return NULL; return strdup(img); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs