Skip to content

Commit

Permalink
Initialize variables by default
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 25, 2021
1 parent 1eb9816 commit cbe0730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osdep/writelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void write_log(const char* format, ...)

TCHAR buffer[WRITE_LOG_BUF_SIZE];

va_list parms;
va_list parms{};
va_start(parms, format);
auto count = vsnprintf(buffer, WRITE_LOG_BUF_SIZE - 1, format, parms);
if (debugfile)
Expand All @@ -102,7 +102,7 @@ void jit_abort(const TCHAR* format, ...)
{
static int happened;
TCHAR buffer[WRITE_LOG_BUF_SIZE];
va_list parms;
va_list parms{};
va_start(parms, format);

auto count = vsnprintf(buffer, WRITE_LOG_BUF_SIZE - 1, format, parms);
Expand Down

0 comments on commit cbe0730

Please # to comment.