Skip to content

Commit

Permalink
log.c: fix warning on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vtorri authored and annacrombie committed Mar 9, 2024
1 parent 25f8e61 commit 2ce00a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/windows/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ print_colorized(FILE *out, const char *s)
const char *start = s;
uint32_t len = 0;

uint32_t esc_num;
uint32_t esc_num = 0;
for (; *s; ++s) {
WORD attr;
WORD attr = 0;
if (*s == '\033') {
attr = 0;
if (len) {
Expand Down

0 comments on commit 2ce00a5

Please sign in to comment.