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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user