fix viewer bustage on linux r=bryner

git-svn-id: svn://10.0.0.236/trunk@60584 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%netscape.com
2000-02-12 04:47:38 +00:00
parent 484ef131f2
commit afb015357d
2 changed files with 20 additions and 0 deletions

View File

@@ -211,6 +211,11 @@ nsCmdLineService::GetArgc(PRInt32 * aResult)
if (nsnull == aResult)
return NS_ERROR_NULL_POINTER;
// if we are null, we were never initialized.
if (mArgc == 0)
return NS_ERROR_FAILURE;
*aResult = mArgc;
return NS_OK;
}
@@ -220,6 +225,11 @@ nsCmdLineService::GetArgv(char *** aResult)
{
if (nsnull == aResult)
return NS_ERROR_NULL_POINTER;
// if we are 0, we were never set.
if (!mArgv)
return NS_ERROR_FAILURE;
*aResult = mArgv;
return NS_OK;