зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 88079. Correct string allocation problem. R=varada, SR=mscott
This commit is contained in:
Родитель
50f7774a05
Коммит
d1b0025d4d
|
@ -1768,6 +1768,8 @@ GenerateFileNameFromURI(nsIURI *aURL)
|
|||
return returnString;
|
||||
}
|
||||
}
|
||||
else
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
cp = nsnull;
|
||||
|
@ -1792,7 +1794,7 @@ GenerateFileNameFromURI(nsIURI *aURL)
|
|||
|
||||
char *hostStr = nsMsgParseURLHost(cp2);
|
||||
if (!hostStr)
|
||||
hostStr = cp2;
|
||||
hostStr = PL_strdup(cp2);
|
||||
|
||||
PRBool isHTTP = PR_FALSE;
|
||||
if (NS_SUCCEEDED(aURL->SchemeIs("http", &isHTTP)) && isHTTP)
|
||||
|
|
Загрузка…
Ссылка в новой задаче