fix segfault by initializing nwipe_gui_thread

This commit is contained in:
Martijn van Brummelen
2018-10-05 22:35:41 +02:00
parent baab603809
commit dd74c429b0
2 changed files with 2 additions and 1 deletions

1
README
View File

@@ -20,6 +20,7 @@ RELEASE NOTES
v0.25
- Correct J=Up K=Down in footer(Thanks PartialVolume)
- Fix segfault initialize nwipe_gui_thread (Thanks PartialVolume)
v0.24
- use include values for version 0.17

View File

@@ -48,7 +48,7 @@ int main( int argc, char** argv )
int nwipe_enumerated; /* The number of contexts that have been enumerated. */
int nwipe_error = 0; /* An error counter. */
int nwipe_selected = 0; /* The number of contexts that have been selected. */
pthread_t nwipe_gui_thread; /* The thread ID of the GUI thread. */
pthread_t nwipe_gui_thread = 0; /* The thread ID of the GUI thread. */
pthread_t nwipe_sigint_thread; /* The thread ID of the sigint handler. */
/* The entropy source file handle. */