follow-up

scope of cmdstr
This commit is contained in:
nhmall
2026-08-06 10:35:46 -04:00
parent c3ce341434
commit 411c8becb9
+2 -2
View File
@@ -2299,7 +2299,9 @@ handler_rebind_keys_add(boolean keyfirst)
char buf2[QBUFSZ];
uchar key = '\0';
int clr = NO_COLOR;
char cmdstr[BUFSZ];
cmdstr[0] = '\0';
if (keyfirst) {
pline("Bind which key? ");
key = pgetchar();
@@ -2353,9 +2355,7 @@ handler_rebind_keys_add(boolean keyfirst)
destroy_nhwindow(win);
if (npick > 0) {
struct Cmd_bind *prevcmd;
char cmdstr[BUFSZ];
cmdstr[0] = '\0';
i = picks->item.a_int;
free((genericptr_t) picks);