diff --git a/kernel_lite/process_posix/src/PthreadAttrTest.cpp b/kernel_lite/process_posix/src/PthreadAttrTest.cpp index 09452811a0fe12582b0aa8f797c6df10443d7745..c083bf10a96f3a9ecb98060583100c87bfc994e5 100755 --- a/kernel_lite/process_posix/src/PthreadAttrTest.cpp +++ b/kernel_lite/process_posix/src/PthreadAttrTest.cpp @@ -202,7 +202,7 @@ void *ThreadPthreadAttrSetstack(void *arg) { pthread_attr_t attr; void *stackAddr1 = nullptr; - size_t stackSize; + size_t stackSize = 0; EXPECT_EQ(pthread_getattr_np(pthread_self(), &attr), 0) << "> return errno"; EXPECT_EQ(pthread_attr_getstack(&attr, &stackAddr1, &stackSize), 0) << "> return errno";