summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2013-12-31 11:38:46 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2013-12-31 13:23:48 +0900
commite666c591660ba8d817e7c9684af27e6734cc074d (patch)
treee69943ddd593ed370cc3f976639039dead099ab0 /src
parent8ac47e37a5415705d15f7bb85ae9d8c80fb9c795 (diff)
spinner: add NULL check
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_spinner.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index e7c881b4a..0590873be 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -763,14 +763,14 @@ static void
763_elm_spinner_smart_focus_next_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list) 763_elm_spinner_smart_focus_next_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
764{ 764{
765 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 765 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
766 *ret = _elm_spinner_smart_focus_next_enable; 766 if (ret) *ret = _elm_spinner_smart_focus_next_enable;
767} 767}
768 768
769static void 769static void
770_elm_spinner_smart_focus_direction_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list) 770_elm_spinner_smart_focus_direction_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
771{ 771{
772 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 772 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
773 *ret = EINA_FALSE; 773 if (ret) *ret = EINA_FALSE;
774} 774}
775 775
776static Evas_Object * 776static Evas_Object *
@@ -887,7 +887,7 @@ _elm_spinner_label_format_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
887{ 887{
888 const char **ret = va_arg(*list, const char **); 888 const char **ret = va_arg(*list, const char **);
889 Elm_Spinner_Smart_Data *sd = _pd; 889 Elm_Spinner_Smart_Data *sd = _pd;
890 *ret = sd->label; 890 if (ret) *ret = sd->label;
891} 891}
892 892
893EAPI void 893EAPI void
@@ -969,7 +969,7 @@ _elm_spinner_step_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
969{ 969{
970 double *ret = va_arg(*list, double *); 970 double *ret = va_arg(*list, double *);
971 Elm_Spinner_Smart_Data *sd = _pd; 971 Elm_Spinner_Smart_Data *sd = _pd;
972 *ret = sd->step; 972 if (ret) *ret = sd->step;
973} 973}
974 974
975EAPI void 975EAPI void
@@ -1017,7 +1017,7 @@ _elm_spinner_value_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1017{ 1017{
1018 double *ret = va_arg(*list, double *); 1018 double *ret = va_arg(*list, double *);
1019 Elm_Spinner_Smart_Data *sd = _pd; 1019 Elm_Spinner_Smart_Data *sd = _pd;
1020 *ret = sd->val; 1020 if (ret) *ret = sd->val;
1021} 1021}
1022 1022
1023EAPI void 1023EAPI void
@@ -1050,7 +1050,7 @@ _elm_spinner_wrap_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1050{ 1050{
1051 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 1051 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
1052 Elm_Spinner_Smart_Data *sd = _pd; 1052 Elm_Spinner_Smart_Data *sd = _pd;
1053 *ret = sd->wrap; 1053 if (ret) *ret = sd->wrap;
1054} 1054}
1055 1055
1056EAPI void 1056EAPI void
@@ -1162,7 +1162,7 @@ _elm_spinner_editable_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1162{ 1162{
1163 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 1163 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
1164 Elm_Spinner_Smart_Data *sd = _pd; 1164 Elm_Spinner_Smart_Data *sd = _pd;
1165 *ret = sd->editable; 1165 if (ret) *ret = sd->editable;
1166} 1166}
1167 1167
1168EAPI void 1168EAPI void
@@ -1195,7 +1195,7 @@ _elm_spinner_interval_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1195{ 1195{
1196 double *ret = va_arg(*list, double *); 1196 double *ret = va_arg(*list, double *);
1197 Elm_Spinner_Smart_Data *sd = _pd; 1197 Elm_Spinner_Smart_Data *sd = _pd;
1198 *ret = sd->first_interval; 1198 if (ret) *ret = sd->first_interval;
1199} 1199}
1200 1200
1201EAPI void 1201EAPI void
@@ -1228,7 +1228,7 @@ _elm_spinner_base_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1228{ 1228{
1229 double *ret = va_arg(*list, double *); 1229 double *ret = va_arg(*list, double *);
1230 Elm_Spinner_Smart_Data *sd = _pd; 1230 Elm_Spinner_Smart_Data *sd = _pd;
1231 *ret = sd->val_base; 1231 if (ret) *ret = sd->val_base;
1232} 1232}
1233 1233
1234EAPI void 1234EAPI void
@@ -1261,7 +1261,7 @@ _elm_spinner_round_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1261{ 1261{
1262 int *ret = va_arg(*list, int *); 1262 int *ret = va_arg(*list, int *);
1263 Elm_Spinner_Smart_Data *sd = _pd; 1263 Elm_Spinner_Smart_Data *sd = _pd;
1264 *ret = sd->round; 1264 if (ret) *ret = sd->round;
1265} 1265}
1266 1266
1267static void 1267static void