diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:22:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:22:58 +0000 |
commit | 764402d8b945f7abbfa5f68a6d16c94c635f7ffe (patch) | |
tree | f04a9feedef2357ee3aa9b9eef439447f76f14c3 /sys-utils/hwclock-parse-date.c | |
parent | Adding debian version 2.40-8. (diff) | |
download | util-linux-764402d8b945f7abbfa5f68a6d16c94c635f7ffe.tar.xz util-linux-764402d8b945f7abbfa5f68a6d16c94c635f7ffe.zip |
Merging upstream version 2.40.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sys-utils/hwclock-parse-date.c')
-rw-r--r-- | sys-utils/hwclock-parse-date.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-utils/hwclock-parse-date.c b/sys-utils/hwclock-parse-date.c index d715c7b..f868d32 100644 --- a/sys-utils/hwclock-parse-date.c +++ b/sys-utils/hwclock-parse-date.c @@ -2928,16 +2928,16 @@ int parse_date(struct timespec *result, char const *p, time_t Start; intmax_t Start_ns; struct tm const *tmp; - struct tm tm; - struct tm tm0; - parser_control pc; - struct timespec gettime_buffer; + struct tm tm = { 0 }; + struct tm tm0 = { 0 }; + parser_control pc = { 0 }; + struct timespec gettime_buffer = { 0 }; unsigned char c; int tz_was_altered = 0; char *tz0 = NULL; char tz0buf[TZBUFSIZE]; int ok = 1; - struct timeval tv; + struct timeval tv = { 0 }; if (! now) { gettimeofday (&tv, NULL); |