From 755977ac2657522a4ce6ce02e20c26392079dc32 Mon Sep 17 00:00:00 2001 From: "law%netscape.com" Date: Wed, 20 Oct 1999 14:40:25 +0000 Subject: [PATCH] Fix for bug #?????; Avoid false positive on check for -f cmd line option; r=warren@netscape.com --- xpfe/browser/src/nsBrowserInstance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpfe/browser/src/nsBrowserInstance.cpp b/xpfe/browser/src/nsBrowserInstance.cpp index 5b5c2ecf773c..52d18a601471 100644 --- a/xpfe/browser/src/nsBrowserInstance.cpp +++ b/xpfe/browser/src/nsBrowserInstance.cpp @@ -1119,9 +1119,9 @@ nsBrowserAppCore::LoadInitialPage(void) #ifdef DEBUG // First, check if there's a URL file to load (for testing), and if there // is, process it instead of anything else. - char* file; + char* file = 0; rv = cmdLineArgs->GetCmdLineValue("-f", &file); - if (NS_SUCCEEDED(rv)) { + if (NS_SUCCEEDED(rv) && file) { PageCycler* bb = new PageCycler(this); if (bb == nsnull) { nsCRT::free(file);