Fix bugs for result of static analizer.
[platform/upstream/iotivity.git] / service / notification / src / consumer / NSThread.c
index 5610636..36655d8 100644 (file)
@@ -53,7 +53,7 @@ NSConsumerThread * NSThreadInit(NSThreadFunc func, void * data)
 
     handle->isStarted = true;
 
-    pthread_attr_t attrDetached;
+    pthread_attr_t attrDetached = {};
     pthread_attr_init(& attrDetached);
     pthread_attr_setdetachstate(& attrDetached, PTHREAD_CREATE_DETACHED);