From b8c7a6d5ea9e568631cc84e04bf0d8861b6f99ec Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 28 Feb 2023 18:54:07 -0500 Subject: [PATCH] cppcheck cleanup. --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index cf404f7..7365fbf 100644 --- a/misc.c +++ b/misc.c @@ -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. -- 2.31.1