mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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"
This commit is contained in:
parent
6d22c3961d
commit
62a8e95fea
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue