cppcheck cleanup.

This commit is contained in:
Eric S. Raymond 2023-02-28 18:54:07 -05:00
parent e5e6dbd741
commit b8c7a6d5ea

4
misc.c
View file

@ -221,8 +221,8 @@ static char* get_input(void)
// Print a blank line
printf("\n");
char* input;
while (true) {
char* input = "";
for (;;) {
input = myreadline(input_prompt);
if (input == NULL) // Got EOF; return with it.