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:
ducarroz%netscape.com
2001-08-10 22:18:22 +00:00
parent 970ab1d291
commit a641af8378

View File

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