image: fix segv in elm_image_file_set()

This commit is contained in:
Yakov Goldberg 2014-07-08 16:34:23 +03:00
parent 42a84b759b
commit 4f0bc40b91
1 changed files with 1 additions and 1 deletions

View File

@ -884,7 +884,7 @@ _elm_image_file_set(Eo *obj, Elm_Image_Data *sd, const char *file, const char *k
sd->remote = NULL;
for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i)
if (!strncmp(remote_uri[i], file, strlen(remote_uri[i])))
if (file && !strncmp(remote_uri[i], file, strlen(remote_uri[i])))
{
// Found a remote target !
evas_object_hide(sd->img);