Skip to content

Commit b1ced1b

Browse files
committed
Fix Coverity uninitialized pointer field Thread.h
Changed _obj_mem to be initialized with creating new thread.
1 parent 101ae73 commit b1ced1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtos/Thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ class Thread : private mbed::NonCopyable<Thread> {
540540
bool _dynamic_stack;
541541
Semaphore _join_sem;
542542
mutable Mutex _mutex;
543-
mbed_rtos_storage_thread_t _obj_mem;
543+
mbed_rtos_storage_thread_t _obj_mem = {};
544544
bool _finished;
545545
};
546546
/** @}*/

0 commit comments

Comments
 (0)