summaryrefslogtreecommitdiff
path: root/src
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:23:59 +0900
commitbc2a5d828583ea96044514cf58bcc22b0173f04d (patch)
treec62a2feb7ca40808c64e8859ba19ad3df454192c /src
parenta80af5fdc40d07bf70d9725efac7e59d4698c0f6 (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')
-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 a210045e6..cdb6eb9ba 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -291,7 +291,7 @@ static void
291_elm_hoversel_smart_admits_autorepeat_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list) 291_elm_hoversel_smart_admits_autorepeat_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
292{ 292{
293 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 293 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
294 *ret = EINA_FALSE; 294 if (ret) *ret = EINA_FALSE;
295} 295}
296 296
297EAPI Evas_Object * 297EAPI Evas_Object *
@@ -351,7 +351,7 @@ _hover_parent_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
351 Evas_Object **ret = va_arg(*list, Evas_Object **); 351 Evas_Object **ret = va_arg(*list, Evas_Object **);
352 Elm_Hoversel_Smart_Data *sd = _pd; 352 Elm_Hoversel_Smart_Data *sd = _pd;
353 353
354 *ret = sd->hover_parent; 354 if (ret) *ret = sd->hover_parent;
355} 355}
356 356
357EAPI void 357EAPI void
@@ -388,7 +388,7 @@ _horizontal_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
388 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 388 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
389 Elm_Hoversel_Smart_Data *sd = _pd; 389 Elm_Hoversel_Smart_Data *sd = _pd;
390 390
391 *ret = sd->horizontal; 391 if (ret) *ret = sd->horizontal;
392} 392}
393 393
394EAPI void 394EAPI void
@@ -490,7 +490,7 @@ _items_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
490 const Eina_List **ret = va_arg(*list, const Eina_List **); 490 const Eina_List **ret = va_arg(*list, const Eina_List **);
491 Elm_Hoversel_Smart_Data *sd = _pd; 491 Elm_Hoversel_Smart_Data *sd = _pd;
492 492
493 *ret = sd->items; 493 if (ret) *ret = sd->items;
494} 494}
495 495
496EAPI Elm_Object_Item * 496EAPI Elm_Object_Item *