summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2015-04-21 14:30:41 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2015-04-21 14:30:41 +0900
commitf1ae9c16b3a6610c18efbc583cf27e5d637fee4a (patch)
treed0aa7815112ee35f051dc9c3e0e0be5971acf53d /src/lib/elm_toolbar.c
parentc3d88e790cd0566902853f2afbf415de4b1fe58c (diff)
elm: add safety check
when insert a new item before/after an item, the relative item should not be NULL. this patch fixes naviframe, gengrid, genlist, list, and toolbar. @fix
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index c588e36dd..93e1b25d4 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -2987,6 +2987,7 @@ _elm_toolbar_item_insert_before(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *
2987 Elm_Toolbar_Item_Data *it; 2987 Elm_Toolbar_Item_Data *it;
2988 double scale; 2988 double scale;
2989 2989
2990 EINA_SAFETY_ON_NULL_RETURN_VAL(eo_before, NULL);
2990 ELM_TOOLBAR_ITEM_DATA_GET(eo_before, _before); 2991 ELM_TOOLBAR_ITEM_DATA_GET(eo_before, _before);
2991 ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(_before, NULL); 2992 ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(_before, NULL);
2992 2993
@@ -3010,6 +3011,7 @@ _elm_toolbar_item_insert_after(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *e
3010 Elm_Toolbar_Item_Data *it; 3011 Elm_Toolbar_Item_Data *it;
3011 double scale; 3012 double scale;
3012 3013
3014 EINA_SAFETY_ON_NULL_RETURN_VAL(eo_after, NULL);
3013 ELM_TOOLBAR_ITEM_DATA_GET(eo_after, _after); 3015 ELM_TOOLBAR_ITEM_DATA_GET(eo_after, _after);
3014 ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(_after, NULL); 3016 ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(_after, NULL);
3015 3017