mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix for bug 317856 . uninitialized variable correction. r=wtchang
This commit is contained in:
parent
b59393fba7
commit
1477ed4b30
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user