mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Reland fix for bug 249737 which bsmedberg wiped out in bug 237745.
This commit is contained in:
parent
34055268a2
commit
e3ee55555a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user