logging/text_formatter: Use empty braces for initializing CONSOLE_SCREEN_BUFFER_INFO instance

The previous form of initializing done here is a C-ism, an empty set of
braces is sufficient for initializing (and doesn't potentially cause
missing brace warnings, given the first member of the struct is a COORD
struct).
This commit is contained in:
Lioncash 2018-08-21 11:28:25 -04:00
parent c95c4442e9
commit 5a53d75313

View File

@ -42,7 +42,7 @@ void PrintColoredMessage(const Entry& entry) {
return; return;
} }
CONSOLE_SCREEN_BUFFER_INFO original_info = {0}; CONSOLE_SCREEN_BUFFER_INFO original_info = {};
GetConsoleScreenBufferInfo(console_handle, &original_info); GetConsoleScreenBufferInfo(console_handle, &original_info);
WORD color = 0; WORD color = 0;