Skip to content

Commit 5426ee6

Browse files
committed
add test
1 parent f743809 commit 5426ee6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎test/cfg/windows.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,9 +1263,11 @@ void constParameterPointer_SetupDiGetDeviceInstanceId(HDEVINFO info, SP_DEVINFO_
12631263

12641264
void uninitvar_localtime_s(const time_t *time, struct tm *result)
12651265
{
1266-
time_t Time;
1266+
time_t uninit_time;
1267+
struct tm uninit_result;
12671268
// cppcheck-suppress uninitvar
1268-
(void)localtime_s(result, &Time);
1269+
(void)localtime_s(result, &uninit_time);
1270+
(void)localtime_s(&uninit_result, time);
12691271
(void)localtime_s(result, time);
12701272
}
12711273

0 commit comments

Comments
 (0)