initialize myStack to NULL for the later check against NULL

This commit is contained in:
kaleb-himes
2016-01-04 13:18:43 -07:00
parent e6398998b1
commit 15918ebd99

View File

@ -1374,7 +1374,7 @@ typedef THREAD_RETURN WOLFSSL_THREAD (*thread_func)(void* args);
static INLINE void StackSizeCheck(func_args* args, thread_func tf)
{
int ret, i, used;
unsigned char* myStack;
unsigned char* myStack = NULL;
int stackSize = 1024*128;
pthread_attr_t myAttr;
pthread_t threadId;