Skip to content

Commit f0704c3

Browse files
fix:initialize the struct member (#2992)
Co-authored-by: chejinge <[email protected]>
1 parent 1b0990e commit f0704c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pika_server.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,8 @@ void PikaServer::AutoDeleteExpiredDump() {
13641364
int now_month = now->tm_mon + 1;
13651365
int now_day = now->tm_mday;
13661366

1367-
struct tm dump_time;
1368-
struct tm now_time;
1367+
struct tm dump_time = {};
1368+
struct tm now_time = {};
13691369

13701370
dump_time.tm_year = dump_year;
13711371
dump_time.tm_mon = dump_month;

0 commit comments

Comments
 (0)