diff options
author | Christopher Michael <cp.michael@samsung.com> | 2019-03-14 07:22:26 -0400 |
---|---|---|
committer | Christopher Michael <cp.michael@samsung.com> | 2019-03-14 07:22:26 -0400 |
commit | 881b72f40d798db636e702287d762c5e2006ead2 (patch) | |
tree | 2691f10021331f4c568dd56439d466e905627e74 | |
parent | d293f0ef9fdadc77a890c1179cbd28a54796bdf1 (diff) | |
download | efl-881b72f40d798db636e702287d762c5e2006ead2.tar.gz |
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
-rw-r--r-- | src/lib/elementary/efl_ui_datepicker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_datepicker.c b/src/lib/elementary/efl_ui_datepicker.c index 872f67b90a..b7978b15c4 100644 --- a/src/lib/elementary/efl_ui_datepicker.c +++ b/src/lib/elementary/efl_ui_datepicker.c @@ -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) |