summaryrefslogtreecommitdiff
path: root/sys/src/cmd/gzip/unzip.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-12-03 08:22:02 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-12-03 08:22:02 +0100
commit1eca33b48c25d3ee58691ea8f9d122cdf12a57a6 (patch)
tree34e650295f8595fab7bfe614410557f6ccae44e5 /sys/src/cmd/gzip/unzip.c
parente624b7ffb8afbf1559e19817063b34968e80a7f8 (diff)
always zero initialize Tm structure for tm2sec()
Diffstat (limited to 'sys/src/cmd/gzip/unzip.c')
-rw-r--r--sys/src/cmd/gzip/unzip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/gzip/unzip.c b/sys/src/cmd/gzip/unzip.c
index 748c27923..ad72c0019 100644
--- a/sys/src/cmd/gzip/unzip.c
+++ b/sys/src/cmd/gzip/unzip.c
@@ -764,6 +764,7 @@ msdos2time(int time, int date)
{
Tm tm;
+ memset(&tm, 0, sizeof(tm));
tm.hour = time >> 11;
tm.min = (time >> 5) & 63;
tm.sec = (time & 31) << 1;