mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Fix for bug #?????; Avoid false positive on check for -f cmd line option; r=warren@netscape.com
This commit is contained in:
parent
886b682461
commit
755977ac26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user