diff options
author | Daniel Hirt <daniel.hirt@samsung.com> | 2015-12-09 13:38:21 +0200 |
---|---|---|
committer | Daniel Hirt <daniel.hirt@samsung.com> | 2015-12-09 13:38:21 +0200 |
commit | 3585ee43369e78f91d2250e91c5f647af4262b76 (patch) | |
tree | adf0166e65796b85ffbed7b2a05130456cbb86e4 | |
parent | 47c02f50710977d2442f2f53df34b288c77e9e59 (diff) | |
download | elementary-3585ee43369e78f91d2250e91c5f647af4262b76.tar.gz |
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.c | 2 |
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, o = ip->func(ip->data, data, item); if (o) return o; } - if (!strncmp(item, "file://", 7)) + if (item && !strncmp(item, "file://", 7)) { const char *fname = item + 7; |