From 46068342861e6fd2a9bd72d99dc796dcdf01aa46 Mon Sep 17 00:00:00 2001 From: Martijn van Brummelen Date: Fri, 16 Nov 2018 21:27:42 +0100 Subject: [PATCH] Variable 'keystroke' is used uninitialized --- src/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui.c b/src/gui.c index 2d96e7f..609d504 100644 --- a/src/gui.c +++ b/src/gui.c @@ -995,7 +995,7 @@ void nwipe_gui_prng( void ) if( nwipe_options.prng == &nwipe_isaac ) { focus = 1; } - while( keystroke != ERR ) + do { /* Clear the main window. */ werase( main_window ); @@ -1086,6 +1086,7 @@ void nwipe_gui_prng( void ) } /* switch */ } /* while */ + while( keystroke != ERR ) } /* nwipe_gui_prng */