Fix for bug 317856 . uninitialized variable correction. r=wtchang

This commit is contained in:
julien.pierre.bugs%sun.com 2006-01-20 22:55:15 +00:00
parent b59393fba7
commit 1477ed4b30

View File

@ -446,6 +446,7 @@ launch_thread(
void * b,
int tid)
{
PRUint32 i;
perThread * slot;
PR_Lock(threadLock);
@ -456,6 +457,7 @@ launch_thread(
return SECFailure;
}
i = numUsed;
slot = &threads[numUsed++];
slot->a = a;
slot->b = b;
@ -475,7 +477,7 @@ launch_thread(
slot->inUse = 1;
PR_Unlock(threadLock);
PRINTF("strsclnt: Launched thread in slot %d \n", numUsed-1);
PRINTF("strsclnt: Launched thread in slot %d \n", i);
return SECSuccess;
}