Reland fix for bug 249737 which bsmedberg wiped out in bug 237745.

This commit is contained in:
dbaron%dbaron.org 2004-11-27 01:15:55 +00:00
parent 34055268a2
commit e3ee55555a

View File

@ -217,12 +217,8 @@ nsCmdLineService::GetURLToLoad(char ** aResult)
NS_IMETHODIMP
nsCmdLineService::GetProgramName(char ** aResult)
{
nsresult rv = NS_OK;
*aResult = (char *)mArgValueList.SafeElementAt(0);
return rv;
*aResult = nsCRT::strdup((char *)mArgValueList.SafeElementAt(0));
return NS_OK;
}
PRBool nsCmdLineService::ArgsMatch(const char *lookingFor, const char *userGave)