Fixed uninitialized value
authorArmin Novak <armin.novak@thincast.com>
Tue, 23 Jun 2020 09:53:45 +0000 (11:53 +0200)
committerArmin Novak <armin.novak@thincast.com>
Mon, 6 Jul 2020 09:13:45 +0000 (11:13 +0200)
(cherry picked from commit dc112d19355491f1b5e23631c15c5d960746bfac)

winpr/libwinpr/timezone/timezone.c

index 12fcd44..d8e33e0 100644 (file)
@@ -341,7 +341,7 @@ DWORD GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
        time_t t;
        struct tm tres;
        struct tm* local_time;
-       TIME_ZONE_ENTRY* dtz;
+       TIME_ZONE_ENTRY* dtz = NULL;
        LPTIME_ZONE_INFORMATION tz = lpTimeZoneInformation;
        lpTimeZoneInformation->StandardBias = 0;
        time(&t);