summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChinmaya Panigrahi <c.panigrahi@samsung.com>2013-12-31 13:12:20 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2013-12-31 13:12:20 +0900
commit7c62a5584541162438fbe84841218e9fb07f2cc2 (patch)
treec3d5ca5e8488f8c2314b516aed6dcbba4e4bfbee /src/lib
parentaa20875332bd88f9d640d3de187f956ecf7a1d3a (diff)
[Hoversel]: Added NULL check
Summary: Added NULL check Test Plan: elementary_test -to hoversel Reviewers: seoz, singh.amitesh Differential Revision: https://phab.enlightenment.org/D427
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elc_hoversel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index f74aeb966..9719b03aa 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -310,7 +310,7 @@ static void
310_elm_hoversel_smart_admits_autorepeat_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list) 310_elm_hoversel_smart_admits_autorepeat_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
311{ 311{
312 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 312 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
313 *ret = EINA_FALSE; 313 if (ret) *ret = EINA_FALSE;
314} 314}
315 315
316EAPI Evas_Object * 316EAPI Evas_Object *
@@ -370,7 +370,7 @@ _hover_parent_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
370 Evas_Object **ret = va_arg(*list, Evas_Object **); 370 Evas_Object **ret = va_arg(*list, Evas_Object **);
371 Elm_Hoversel_Smart_Data *sd = _pd; 371 Elm_Hoversel_Smart_Data *sd = _pd;
372 372
373 *ret = sd->hover_parent; 373 if (ret) *ret = sd->hover_parent;
374} 374}
375 375
376EAPI void 376EAPI void
@@ -407,7 +407,7 @@ _horizontal_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
407 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 407 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
408 Elm_Hoversel_Smart_Data *sd = _pd; 408 Elm_Hoversel_Smart_Data *sd = _pd;
409 409
410 *ret = sd->horizontal; 410 if (ret) *ret = sd->horizontal;
411} 411}
412 412
413EAPI void 413EAPI void
@@ -509,7 +509,7 @@ _items_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
509 const Eina_List **ret = va_arg(*list, const Eina_List **); 509 const Eina_List **ret = va_arg(*list, const Eina_List **);
510 Elm_Hoversel_Smart_Data *sd = _pd; 510 Elm_Hoversel_Smart_Data *sd = _pd;
511 511
512 *ret = sd->items; 512 if (ret) *ret = sd->items;
513} 513}
514 514
515EAPI Elm_Object_Item * 515EAPI Elm_Object_Item *