From: nhmall Date: Sat, 16 Apr 2022 12:32:13 +0000 (-0400) Subject: resolve build error on windows with vs2022 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5762631f96321cad8ea922171492b3831ef44464;p=nethack 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 --- diff --git a/win/tty/getline.c b/win/tty/getline.c index 98d1461d2..4da3d0e6f 100644 --- a/win/tty/getline.c +++ b/win/tty/getline.c @@ -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];