diff --git a/src/nwipe.c b/src/nwipe.c index 422f80c..02ec8a3 100644 --- a/src/nwipe.c +++ b/src/nwipe.c @@ -590,7 +590,7 @@ void *signal_hand(void *ptr) // Kill the GUI thread if( !nwipe_options.nogui ) { - if ( nwipe_misc_thread_data->gui_thread ) + if ( *nwipe_misc_thread_data->gui_thread ) { pthread_cancel( *nwipe_misc_thread_data->gui_thread ); *nwipe_misc_thread_data->gui_thread = 0;