From 396896e16c8a8bbb32bfd6b0780eb8717925d59a Mon Sep 17 00:00:00 2001 From: Nick Law Date: Fri, 16 Nov 2018 22:16:17 +0000 Subject: [PATCH] Fix uninitialized variable 'keystroke' in nwipe_gui_verify() --- src/gui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui.c b/src/gui.c index b4eee72..9442de1 100644 --- a/src/gui.c +++ b/src/gui.c @@ -1124,7 +1124,7 @@ void nwipe_gui_verify( void ) nwipe_gui_title( footer_window, nwipe_buttons2 ); wrefresh( footer_window ); - while( keystroke != ERR ) + do { /* Clear the main window. */ werase( main_window ); @@ -1219,7 +1219,8 @@ void nwipe_gui_verify( void ) } /* switch */ - } /* while */ + } + while( keystroke != ERR ); } /* nwipe_gui_verify */