summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-20 16:57:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-20 16:57:52 +0100
commit03ee8f797ddf8ba4701e394998a28aa7ee5c7ffb (patch)
tree14583b1f345c851e14cf3b95d4a0a7f3fe8ae7b0 /src/thread.h
parent5f2350251bddaa3be7fe2fbc510cf253e7fc971f (diff)
Fix uninitialised warning.
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.h b/src/thread.h
index f2c1dd0..33435e6 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -46,10 +46,10 @@ protected:
private:
#ifdef WIN32
- HANDLE tid;
+ HANDLE tid{nullptr};
static DWORD WINAPI
#else
- pthread_t tid;
+ pthread_t tid{0};
static void*
#endif/*WIN32*/
thread_run(void *data);