Skip to content

Commit 9f0ad47

Browse files
committed
Fixed undefined behavior (uninitialized variable) on Linux in release.
1 parent 16169d5 commit 9f0ad47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/foundation/threading/linux/linuxthread.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ List<LinuxThread*> LinuxThread::ThreadList;
3838
LinuxThread::LinuxThread() :
3939
priority(Normal),
4040
stackSize(0),
41-
threadState(Initial)
41+
threadState(Initial),
42+
thread(0)
4243
{
4344
CPU_ZERO(&this->affinity);
4445
// register with thread list

0 commit comments

Comments
 (0)