summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2015-12-09 13:38:21 +0200
committerDaniel Hirt <daniel.hirt@samsung.com>2015-12-09 13:38:21 +0200
commit3585ee43369e78f91d2250e91c5f647af4262b76 (patch)
treeadf0166e65796b85ffbed7b2a05130456cbb86e4
parent47c02f50710977d2442f2f53df34b288c77e9e59 (diff)
Elm entry: fix null item in item provider.
Item anchors can have null items likes <item size=10x10>. That is, there is no "href". The problem is that Elm Entry segfaults as it expects a non-null item. I prefer this fix over passing "" from Edje Entry, and leave the decision to be made by Elm Entry. It will now just show the error emoticon if there is no "href". @fix
-rw-r--r--src/lib/elm_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index b20ed77f0..923b3ad7c 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -2563,7 +2563,7 @@ _item_get(void *data,
2563 o = ip->func(ip->data, data, item); 2563 o = ip->func(ip->data, data, item);
2564 if (o) return o; 2564 if (o) return o;
2565 } 2565 }
2566 if (!strncmp(item, "file://", 7)) 2566 if (item && !strncmp(item, "file://", 7))
2567 { 2567 {
2568 const char *fname = item + 7; 2568 const char *fname = item + 7;
2569 2569