This commit is contained in:
sspitzer%netscape.com 2000-03-08 04:21:46 +00:00
Родитель daa66da4ed
Коммит e92380a4a0
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1140,8 +1140,10 @@ mozTXTToHTMLConv::ScanTXT(const PRUnichar *text, PRUint32 whattodo,
// need to reallocate and re-copy the characters already in the out String.
NS_ASSERTION(inLength, "ScanTXT passed 0 length string");
if (inLength == 0) {
return NS_ERROR_FAILURE;
*_retval = nsCRT::strdup(text);
return NS_OK;
}
outString.SetCapacity(inLength * growthRate);
ScanTXT(text, inLength, whattodo, outString);