Skip to content

Commit 10eed7f

Browse files
committed
locale.c: Initialize variable to silence compiler
The compiler used on MingW doesn't realize that there is no path that keeps this from being initialized
1 parent 3359807 commit 10eed7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

locale.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,9 @@ S_parse_LC_ALL_string(pTHX_ const char * string,
14741474
}
14751475
}
14761476

1477-
const char * msg;
1477+
/* Some compilers don't realize all paths initialize this */
1478+
const char * msg = NULL;
1479+
14781480
const char * display_start = s;
14791481
const char * display_end = e;
14801482

0 commit comments

Comments
 (0)