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

This commit is contained in:
law%netscape.com 1999-10-20 14:40:25 +00:00
parent 886b682461
commit 755977ac26

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