bug 59652, remove warnings about uninitialized variables, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@112225 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
da76edeb34
commit
2af10dd8ec
@ -234,7 +234,7 @@ Permission_AddHost(char * host, PRBool permission, PRInt32 type, PRBool save) {
|
||||
}
|
||||
|
||||
/* find existing entry for host */
|
||||
permission_HostStruct * hostStruct;
|
||||
permission_HostStruct * hostStruct = nsnull; // initialized only to avoid warning message
|
||||
PRBool HostFound = PR_FALSE;
|
||||
PRInt32 hostCount = permission_list->Count();
|
||||
PRInt32 i;
|
||||
|
||||
@ -1945,7 +1945,7 @@ si_RememberSignonData
|
||||
{
|
||||
int passwordCount = 0;
|
||||
int pswd[3];
|
||||
si_SignonDataStruct * data;
|
||||
si_SignonDataStruct * data = nsnull; // initialization only to avoid warning message
|
||||
si_SignonDataStruct * data0;
|
||||
si_SignonDataStruct * data1;
|
||||
si_SignonDataStruct * data2;
|
||||
@ -2308,6 +2308,7 @@ si_DoDialogIfPrefIsOff(
|
||||
break;
|
||||
default:
|
||||
NS_ASSERTION(PR_FALSE, "Undefined DialogType in si_DoDialogIfPrefIsOff");
|
||||
res = NS_ERROR_FAILURE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user