herdsman pushed a commit to branch master.


commit 3585ee43369e78f91d2250e91c5f647af4262b76
Author: Daniel Hirt <daniel.h...@samsung.com>
Date:   Wed Dec 9 13:38:21 2015 +0200

    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".
 src/lib/elm_entry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index b20ed77..923b3ad 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;


Reply via email to