fix viewer bustage on linux r=bryner

This commit is contained in:
pavlov%netscape.com 2000-02-12 04:47:38 +00:00
Родитель 561f5f3e46
Коммит e3fe70059f
2 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

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

Просмотреть файл

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