Skip to content

Commit 386321c

Browse files
elmarcobonzini
authored andcommitted
summary-info: fix random hour in filetime parsing
1 parent ab1e87b commit 386321c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libmsi/libmsi-summary-info.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ static unsigned read_dword( uint8_t *data, unsigned *ofs )
221221

222222
static void parse_filetime( const WCHAR *str, guint64 *ft )
223223
{
224-
struct tm tm;
224+
/* set to 0, tm_isdst can make the result vary: */
225+
struct tm tm = { 0, };
225226
time_t t;
226227
const WCHAR *p = str;
227228
WCHAR *end;

0 commit comments

Comments
 (0)