Skip to content

Commit 642c133

Browse files
committed
address cppcheck error
Change-Id: I5df45bbc697f09a939420e225d942ad175b2fa31
1 parent f947792 commit 642c133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ inline std::pair<tm, uint64> pcm_localtime() // returns <tm, milliseconds>
366366
const auto durationSinceEpoch = std::chrono::system_clock::now().time_since_epoch();
367367
const auto durationSinceEpochInSeconds = std::chrono::duration_cast<std::chrono::seconds>(durationSinceEpoch);
368368
time_t now = durationSinceEpochInSeconds.count();
369-
tm result;
369+
tm result{};
370370
#ifdef _MSC_VER
371371
localtime_s(&result, &now);
372372
#else

0 commit comments

Comments
 (0)