mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-07 08:36:02 -10:00
Silence a dangling-pointer warning in Lzma
This commit is contained in:
1 parent
f7285ff405
commit
17a05ea939
1 file changed
+2
-1
Vendored
+2
-1
@@ -2828,12 +2828,13 @@ SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, BoolInt reInit,
|
||||
|
||||
nowPos64 = p->nowPos64;
|
||||
RangeEnc_Init(&p->rc);
|
||||
p->rc.outStream = &outStream.vt;
|
||||
|
||||
if (desiredPackSize == 0)
|
||||
return SZ_ERROR_OUTPUT_EOF;
|
||||
|
||||
p->rc.outStream = &outStream.vt;
|
||||
res = LzmaEnc_CodeOneBlock(p, desiredPackSize, *unpackSize);
|
||||
p->rc.outStream = NULL;
|
||||
|
||||
*unpackSize = (uint32_t)(p->nowPos64 - nowPos64);
|
||||
*destLen -= outStream.rem;
|
||||
|
||||
Reference in new issue
Block a user