initialize the [out] parameters in GetWriteSegment so they are correct even if NS_OK is not returned...

This commit is contained in:
rpotts%netscape.com 1999-06-11 08:22:17 +00:00
Родитель c8ada4a416
Коммит 05b81531f8
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -496,6 +496,8 @@ NS_IMETHODIMP
nsBuffer::GetWriteSegment(char* *resultSegment,
PRUint32 *resultSegmentLen)
{
*resultSegmentLen = 0;
*resultSegment = nsnull;
if (mEOF)
return NS_BASE_STREAM_EOF;