forked from enlightenment/efl
elm/datepicker, timepicker: Fix uninitialized vars
Summary: Should fix all timepicker and datepicker uninitializer variable usage detected by Coverity: 1396954 Uninitialized scalar variable: efl_ui_timepicker.c 1396978 Uninitialized scalar variable: efl_ui_timepicker.c 1397006 Uninitialized scalar variable: efl_ui_timepicker.c 1396979 Uninitialized scalar variable: efl_ui_datepicker.c 1404748 Uninitialized scalar variable: efl_ui_datepicker.c 1404757 Uninitialized scalar variable: efl_ui_datepicker.c Test Plan: Everything builds and passes tests. Coverity should complain less. Reviewers: stefan_schmidt, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9967
This commit is contained in:
parent
f49535debb
commit
b0c3062e24
|
@ -23,7 +23,7 @@
|
|||
|
||||
#define DATE_SET() \
|
||||
do { \
|
||||
Efl_Time t; \
|
||||
Efl_Time t = { 0 }; \
|
||||
t.tm_year = pd->cur_date[DATEPICKER_YEAR] - 1900; \
|
||||
t.tm_mon = pd->cur_date[DATEPICKER_MONTH] - 1; \
|
||||
t.tm_mday = pd->cur_date[DATEPICKER_DAY] - 1; \
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#define TIME_SET() \
|
||||
do { \
|
||||
Efl_Time t; \
|
||||
Efl_Time t = { 0 }; \
|
||||
t.tm_hour = pd->cur_time[TIMEPICKER_HOUR]; \
|
||||
t.tm_min = pd->cur_time[TIMEPICKER_MIN]; \
|
||||
efl_datetime_manager_value_set(pd->dt_manager, t); \
|
||||
|
|
Loading…
Reference in New Issue