mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
bug 166741, unitialized variables
r=wtc
This commit is contained in:
parent
f5f5efc50b
commit
019a972928
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.15 $ $Date: 2002/05/20 23:21:34 $ $Name: $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.16 $ $Date: 2002/09/05 22:28:30 $ $Name: $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef DEVM_H
|
||||
@ -1056,7 +1056,7 @@ find_objects_in_array
|
||||
PRUint32 maximumOpt
|
||||
)
|
||||
{
|
||||
PRIntn oi;
|
||||
PRIntn oi = 0;
|
||||
PRUint32 i, j;
|
||||
PRBool match;
|
||||
NSSArena *arena;
|
||||
@ -1078,6 +1078,7 @@ find_objects_in_array
|
||||
if (maximumOpt == 0) maximumOpt = ~0;
|
||||
for (; *objArray && numMatches < maximumOpt; objArray++) {
|
||||
nssCryptokiObjectAndAttributes *obj = *objArray;
|
||||
match = PR_FALSE;
|
||||
for (i=0; i<otlen; i++) {
|
||||
for (j=0; j<obj->numAttributes; j++) {
|
||||
if (ot[i].type == obj->attributes[j].type) {
|
||||
@ -1087,8 +1088,6 @@ find_objects_in_array
|
||||
ot[i].ulValueLen, NULL))
|
||||
{
|
||||
match = PR_TRUE;
|
||||
} else {
|
||||
match = PR_FALSE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user