Fixed use of uninitialized variable. Bugzilla #21201.
authorsrinivas%netscape.com
Wed, 22 Dec 1999 21:24:34 +0000
changeset 1010 60f4a5b4210209299d6892bac80b1f5a1fc83f31
parent 1009 3cfced8f95cb3408e21a0a048a1d058492823044
child 1011 89a62ea84dd982b37cd0a51b23fd74405e72bcea
push idunknown
push userunknown
push dateunknown
bugs21201
Fixed use of uninitialized variable. Bugzilla #21201.
pr/src/threads/combined/pruthr.c
--- a/pr/src/threads/combined/pruthr.c
+++ b/pr/src/threads/combined/pruthr.c
@@ -1254,16 +1254,17 @@ PR_IMPLEMENT(PRThread*) _PR_CreateThread
 #else
             thread = _PR_MD_CREATE_USER_THREAD(stackSize, start, arg);
             if (!thread) {
                 PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
                 return NULL;
             }
             thread->threadAllocatedOnStack = 0;
             stack = NULL;
+            top = NULL;
 #endif
 
             /* Initialize thread */
             thread->tpdLength = 0;
             thread->privateData = NULL;
             thread->stack = stack;
             thread->priority = priority;
             thread->startFunc = start;