summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2013-12-31 11:38:46 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2013-12-31 11:38:46 +0900
commitf8e05dc53f3430694a540ca875b05853ca11f8bb (patch)
treeedef1b954ebc826f08668707fb2cdbb1475db09b
parent90e29827c5980dee077d6b61999ed771a54393c7 (diff)
spinner: add NULL check
-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 da0272d3d..e5d2f18ff 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -768,14 +768,14 @@ static void
768_elm_spinner_smart_focus_next_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list) 768_elm_spinner_smart_focus_next_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
769{ 769{
770 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 770 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
771 *ret = _elm_spinner_smart_focus_next_enable; 771 if (ret) *ret = _elm_spinner_smart_focus_next_enable;
772} 772}
773 773
774static void 774static void
775_elm_spinner_smart_focus_direction_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list) 775_elm_spinner_smart_focus_direction_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
776{ 776{
777 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 777 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
778 *ret = EINA_FALSE; 778 if (ret) *ret = EINA_FALSE;
779} 779}
780 780
781static Evas_Object * 781static Evas_Object *
@@ -892,7 +892,7 @@ _elm_spinner_label_format_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
892{ 892{
893 const char **ret = va_arg(*list, const char **); 893 const char **ret = va_arg(*list, const char **);
894 Elm_Spinner_Smart_Data *sd = _pd; 894 Elm_Spinner_Smart_Data *sd = _pd;
895 *ret = sd->label; 895 if (ret) *ret = sd->label;
896} 896}
897 897
898EAPI void 898EAPI void
@@ -974,7 +974,7 @@ _elm_spinner_step_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
974{ 974{
975 double *ret = va_arg(*list, double *); 975 double *ret = va_arg(*list, double *);
976 Elm_Spinner_Smart_Data *sd = _pd; 976 Elm_Spinner_Smart_Data *sd = _pd;
977 *ret = sd->step; 977 if (ret) *ret = sd->step;
978} 978}
979 979
980EAPI void 980EAPI void
@@ -1022,7 +1022,7 @@ _elm_spinner_value_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1022{ 1022{
1023 double *ret = va_arg(*list, double *); 1023 double *ret = va_arg(*list, double *);
1024 Elm_Spinner_Smart_Data *sd = _pd; 1024 Elm_Spinner_Smart_Data *sd = _pd;
1025 *ret = sd->val; 1025 if (ret) *ret = sd->val;
1026} 1026}
1027 1027
1028EAPI void 1028EAPI void
@@ -1055,7 +1055,7 @@ _elm_spinner_wrap_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1055{ 1055{
1056 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 1056 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
1057 Elm_Spinner_Smart_Data *sd = _pd; 1057 Elm_Spinner_Smart_Data *sd = _pd;
1058 *ret = sd->wrap; 1058 if (ret) *ret = sd->wrap;
1059} 1059}
1060 1060
1061EAPI void 1061EAPI void
@@ -1167,7 +1167,7 @@ _elm_spinner_editable_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1167{ 1167{
1168 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 1168 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
1169 Elm_Spinner_Smart_Data *sd = _pd; 1169 Elm_Spinner_Smart_Data *sd = _pd;
1170 *ret = sd->editable; 1170 if (ret) *ret = sd->editable;
1171} 1171}
1172 1172
1173EAPI void 1173EAPI void
@@ -1200,7 +1200,7 @@ _elm_spinner_interval_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1200{ 1200{
1201 double *ret = va_arg(*list, double *); 1201 double *ret = va_arg(*list, double *);
1202 Elm_Spinner_Smart_Data *sd = _pd; 1202 Elm_Spinner_Smart_Data *sd = _pd;
1203 *ret = sd->first_interval; 1203 if (ret) *ret = sd->first_interval;
1204} 1204}
1205 1205
1206EAPI void 1206EAPI void
@@ -1233,7 +1233,7 @@ _elm_spinner_base_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1233{ 1233{
1234 double *ret = va_arg(*list, double *); 1234 double *ret = va_arg(*list, double *);
1235 Elm_Spinner_Smart_Data *sd = _pd; 1235 Elm_Spinner_Smart_Data *sd = _pd;
1236 *ret = sd->val_base; 1236 if (ret) *ret = sd->val_base;
1237} 1237}
1238 1238
1239EAPI void 1239EAPI void
@@ -1266,7 +1266,7 @@ _elm_spinner_round_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
1266{ 1266{
1267 int *ret = va_arg(*list, int *); 1267 int *ret = va_arg(*list, int *);
1268 Elm_Spinner_Smart_Data *sd = _pd; 1268 Elm_Spinner_Smart_Data *sd = _pd;
1269 *ret = sd->round; 1269 if (ret) *ret = sd->round;
1270} 1270}
1271 1271
1272static void 1272static void