diff --git a/src/bin/ephoto_exif.c b/src/bin/ephoto_exif.c index 9d9b017..853da2b 100644 --- a/src/bin/ephoto_exif.c +++ b/src/bin/ephoto_exif.c @@ -56,7 +56,7 @@ Ecore_Hash *get_exif_data(const char *file) /*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 @@ static const char *get_image(void) { img = ewl_image_file_path_get(EWL_IMAGE(em->eimage)); } - else - { - return NULL; - } + if(!img) return NULL; return strdup(img); }