forked from enlightenment/efl
efl_ui_datepicker: Fix uninitialized scalar value
Summary: Coverity reports field t.tm_sec is unitialized when calling efl_datetime_manager_value_set, so this patch uninitializes it to 0. Fixes Coverity CID1397006 @fix Reviewers: raster, cedric, q66, zmike, bu5hm4n, stefan Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8318
This commit is contained in:
parent
d293f0ef9f
commit
881b72f40d
|
@ -27,6 +27,7 @@
|
|||
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]; \
|
||||
t.tm_sec = 0; \
|
||||
efl_datetime_manager_value_set(pd->dt_manager, t); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue