summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-07-08 16:34:23 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-07-08 16:34:23 +0300
commit257817fb78bf8d64c949696895277a5187f87c5e (patch)
treeac7fece87d716115f0c8b3b866b4f65fc0a09657
parentcc6a931284b3b5086f47bc15bcb1d958b981d71d (diff)
image: fix segv in elm_image_file_set()
-rw-r--r--src/lib/elm_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index bc78a2eca..b435243c3 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -884,7 +884,7 @@ _elm_image_file_set(Eo *obj, Elm_Image_Data *sd, const char *file, const char *k
884 sd->remote = NULL; 884 sd->remote = NULL;
885 885
886 for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i) 886 for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i)
887 if (!strncmp(remote_uri[i], file, strlen(remote_uri[i]))) 887 if (file && !strncmp(remote_uri[i], file, strlen(remote_uri[i])))
888 { 888 {
889 // Found a remote target ! 889 // Found a remote target !
890 evas_object_hide(sd->img); 890 evas_object_hide(sd->img);