From bb91f093a336ab9d70cd5efee65d18c8e98695fb Mon Sep 17 00:00:00 2001 From: Nick Law Date: Sun, 25 Nov 2018 21:53:21 +0000 Subject: [PATCH] Fix segfault on immediate CNTRL-C exit, shows in Fedora32 bit --- src/nwipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;