summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-18 07:30:20 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-18 07:30:20 (GMT)
commit62a8e95fea9b4cb9e4d986aaa554f3e9927d973e (patch)
tree32bead48bb8607f8e9ab51c415432ce575a76b7a /Modules
parent6d22c3961d5cdb7dd29bac4e111bdd55a3c925f3 (diff)
downloadcpython-62a8e95fea9b4cb9e4d986aaa554f3e9927d973e.zip
cpython-62a8e95fea9b4cb9e4d986aaa554f3e9927d973e.tar.gz
cpython-62a8e95fea9b4cb9e4d986aaa554f3e9927d973e.tar.bz2
Coverity issue CID #197
var_decl: Declared variable "stm" without initializer ninit_use_in_call: Using uninitialized value "stm" (field "stm".tm_zone uninitialized) in call to function "mktime"
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index dec6091..a57812d 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -1001,6 +1001,8 @@ parse_dostime(int dostime, int dosdate)
{
struct tm stm;
+ memset((void *) &stm, '\0', sizeof(stm));
+
stm.tm_sec = (dostime & 0x1f) * 2;
stm.tm_min = (dostime >> 5) & 0x3f;
stm.tm_hour = (dostime >> 11) & 0x1f;