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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user