From 81213f119cdb1212c19e90b2574d6bb555acc8bf Mon Sep 17 00:00:00 2001
From: Jakob Bornecrantz <jakob@collabora.com>
Date: Sun, 15 Sep 2019 15:39:30 +0100
Subject: [PATCH] os: Tidy threading

---
 src/xrt/auxiliary/os/os_threading.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/xrt/auxiliary/os/os_threading.h b/src/xrt/auxiliary/os/os_threading.h
index ec32b8a25..7129cec70 100644
--- a/src/xrt/auxiliary/os/os_threading.h
+++ b/src/xrt/auxiliary/os/os_threading.h
@@ -9,6 +9,7 @@
  */
 
 #include "xrt/xrt_compiler.h"
+#include "util/u_misc.h"
 
 #ifdef XRT_OS_LINUX
 #include <pthread.h>
@@ -116,7 +117,7 @@ os_thread_start(struct os_thread *ost, os_run_func func, void *ptr)
 }
 
 /*!
- * Joon.
+ * Join.
  */
 XRT_MAYBE_UNUSED static void
 os_thread_join(struct os_thread *ost)
@@ -124,7 +125,7 @@ os_thread_join(struct os_thread *ost)
 	void *retval;
 
 	pthread_join(ost->thread, &retval);
-	memset(&ost->thread, 0, sizeof(ost->thread));
+	U_ZERO(&ost->thread);
 }
 
 /*!