Check to make sure img points at something.

SVN revision: 28658
This commit is contained in:
titan 2007-03-11 14:13:11 +00:00 committed by titan
parent 6ccba8cb7d
commit ee9c58e627
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}