Check to make sure img points at something.
SVN revision: 28658
This commit is contained in:
parent
6ccba8cb7d
commit
ee9c58e627
|
@ -56,7 +56,7 @@ Ecore_Hash *get_exif_data(const char *file)
|
||||||
/*Get the current image*/
|
/*Get the current image*/
|
||||||
static const char *get_image(void)
|
static const char *get_image(void)
|
||||||
{
|
{
|
||||||
const char *img;
|
const char *img = NULL;
|
||||||
|
|
||||||
if (VISIBLE(em->fbox_vbox) && em->currentf)
|
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));
|
img = ewl_image_file_path_get(EWL_IMAGE(em->eimage));
|
||||||
}
|
}
|
||||||
else
|
if(!img) return NULL;
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return strdup(img);
|
return strdup(img);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue