Skip to content

Commit

Permalink
Init the var too
Browse files Browse the repository at this point in the history
  • Loading branch information
anzz1 committed Mar 18, 2023
1 parent f69062f commit 1b19586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ int main(int argc, char ** argv) {
signal(SIGINT, sigint_handler);

// Windows console ANSI color fix
DWORD mode;
DWORD mode = 0;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
if (hConsole && hConsole != INVALID_HANDLE_VALUE && GetConsoleMode(hConsole, &mode))
SetConsoleMode(hConsole, mode | ENABLE_VIRTUAL_TERMINAL_PROCESSING);
Expand Down

0 comments on commit 1b19586

Please sign in to comment.