mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 886730 - Move a szip.cpp MOZ_ASSERT to a safer place. r=nfroyd
This commit is contained in:
parent
fc82c0f523
commit
071998d656
@ -441,13 +441,13 @@ int SzipCompress::do_compress(Buffer &origBuf, Buffer &outBuf,
|
||||
}
|
||||
header->lastChunkSize = avail;
|
||||
MOZ_ASSERT(header->totalSize == offset);
|
||||
MOZ_ASSERT(header->nChunks == nChunks);
|
||||
|
||||
if (!outBuf.Resize(offset)) {
|
||||
LOG("Error truncating output: %s", strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(header->nChunks == nChunks);
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user