Patch for bug 59670 by Aleksey Nogin. Initialize variables before using them. r=dveditz, sr=brendan

This commit is contained in:
bratell%lysator.liu.se 2002-12-15 19:17:20 +00:00
parent a1a6f3a510
commit b00d416569
3 changed files with 4 additions and 3 deletions

View File

@ -362,7 +362,7 @@ nsHTTPConn::Response(HTTPGetCB aCallback, char *aDestFile, int aResumePos)
int rv = OK;
char resp[kRespBufSize];
int bufSize, total, fwriteLen, fwrote, bytesWritten = 0, expectedSize = 0;
int bufSize, total = 0, fwriteLen, fwrote, bytesWritten = 0, expectedSize = 0;
FILE *destFd;
char *fwritePos;
int bFirstIter = TRUE;

View File

@ -226,6 +226,7 @@ main(int argc, char **argv)
fprintf(stderr, "Like, uhm, dude! I don't get you. ");
fprintf(stderr, "See usage...\n");
usage(argv[0]);
return 1;
}
}

View File

@ -922,7 +922,7 @@ nsInstallDlg::ShowProxySettings(GtkWidget *aWidget, gpointer aData)
GtkWidget *okButton, *cancelButton;
GtkWidget *psLabel[NUM_PS_ENTRIES];
int i;
char resName[16], *text;
char resName[16], *text = nsnull;
psDlg = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(psDlg), gCtx->opt->mTitle);
@ -1132,7 +1132,7 @@ nsInstallDlg::DLCancel(GtkWidget *aWidget, gpointer aData)
int
nsInstallDlg::CancelOrPause()
{
int err;
int err = OK;
if (bDLPause)
{