From 7e97062381da5c049f7605055bd617f94e466e55 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 21 Mar 2020 20:18:42 +0100 Subject: [PATCH] change for bionic only to zero out if set --- client/comms.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/comms.c b/client/comms.c index 7a9086873..a551e59e3 100644 --- a/client/comms.c +++ b/client/comms.c @@ -671,7 +671,13 @@ void CloseProxmark(void) { // Clean up our state sp = NULL; +#ifdef __BIONIC__ + if (communication_thread != 0) { + memset(&communication_thread, 0, sizeof(pthread_t)); + } +#else memset(&communication_thread, 0, sizeof(pthread_t)); +#endif session.pm3_present = false; }