Fix for bug #?????; Avoid false positive on check for -f cmd line option; r=warren@netscape.com

git-svn-id: svn://10.0.0.236/trunk@51257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
law%netscape.com
1999-10-20 14:40:25 +00:00
parent 6418d90654
commit df6e65595b

View File

@@ -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);