Fix for bug 88079. Correct string allocation problem. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@100824 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user