Skip to content

Commit

Permalink
Fix Coverity uninitialized pointer field Thread.h
Browse files Browse the repository at this point in the history
Changed _obj_mem to be initialized with creating new thread.
  • Loading branch information
Tharazi97 committed Aug 21, 2019
1 parent 101ae73 commit b1ced1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtos/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class Thread : private mbed::NonCopyable<Thread> {
bool _dynamic_stack;
Semaphore _join_sem;
mutable Mutex _mutex;
mbed_rtos_storage_thread_t _obj_mem;
mbed_rtos_storage_thread_t _obj_mem = {};
bool _finished;
};
/** @}*/
Expand Down

0 comments on commit b1ced1b

Please sign in to comment.