projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c533d
)
[controlbar] add NULL check
author
Jaehwan Kim
<jae.hwan.kim@samsung.com>
Mon, 10 Jan 2011 10:28:53 +0000
(19:28 +0900)
committer
Jaehwan Kim
<jae.hwan.kim@samsung.com>
Mon, 10 Jan 2011 10:28:53 +0000
(19:28 +0900)
src/lib/elm_controlbar.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_controlbar.c
b/src/lib/elm_controlbar.c
index
c1b909b
..
7ab3cbe
100644
(file)
--- a/
src/lib/elm_controlbar.c
+++ b/
src/lib/elm_controlbar.c
@@
-3064,6
+3064,7
@@
elm_controlbar_item_icon_set(Elm_Controlbar_Item * it, const char *icon_path)
EAPI Evas_Object *
elm_controlbar_item_icon_get(Elm_Controlbar_Item * it)
{
+ if (it == NULL) return;
return it->icon;
}
@@
-3111,6
+3112,7
@@
elm_controlbar_item_label_set(Elm_Controlbar_Item * it, const char *label)
EAPI const char *
elm_controlbar_item_label_get(Elm_Controlbar_Item * it)
{
+ if (it == NULL) return;
return it->text;
}