resolve build error on windows with vs2022

win/tty/getline.c(305) :
warning C4701: potentially uninitialized local variable 'ecmatches' used
win/tty/getline.c(305) :
error C4703: potentially uninitialized local pointer variable
'ecmatches' used
This commit is contained in:
nhmall
2022-04-16 08:32:13 -04:00
parent 31affa0722
commit 5762631f96

View File

@@ -270,7 +270,7 @@ tty_get_ext_cmd(void)
{
char buf[BUFSZ];
int nmatches;
int *ecmatches;
int *ecmatches = 0;
boolean (*no_hook)(char *base) = (boolean (*)(char *)) 0;
char extcmd_char[2];