Fix for bug 88079. Correct string allocation problem. R=varada, SR=mscott

This commit is contained in:
ducarroz%netscape.com 2001-08-10 22:18:22 +00:00
Родитель 50f7774a05
Коммит d1b0025d4d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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