зеркало из https://github.com/mozilla/gecko-dev.git
initialize the [out] parameters in GetWriteSegment so they are correct even if NS_OK is not returned...
This commit is contained in:
Родитель
c8ada4a416
Коммит
05b81531f8
|
@ -496,6 +496,8 @@ NS_IMETHODIMP
|
|||
nsBuffer::GetWriteSegment(char* *resultSegment,
|
||||
PRUint32 *resultSegmentLen)
|
||||
{
|
||||
*resultSegmentLen = 0;
|
||||
*resultSegment = nsnull;
|
||||
if (mEOF)
|
||||
return NS_BASE_STREAM_EOF;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче