Fix segfault on immediate CNTRL-C exit, shows in Fedora32 bit

This commit is contained in:
Nick Law
2018-11-25 21:53:21 +00:00
parent 025a02e87c
commit bb91f093a3

View File

@@ -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;