From: Yann Collet Date: Tue, 16 May 2017 23:28:24 +0000 (-0700) Subject: pedantic : added one error check X-Git-Tag: v1.3.0~1^2~36^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F702%2Fhead;p=thirdparty%2Fzstd.git pedantic : added one error check on a function which (today) never fails. But who knows, maybe tomorrow ... --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index c1ba53ea9..0c61960ec 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -2270,7 +2270,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB } } /* Consume header */ - ZSTD_decompressBegin_usingDDict(zds->dctx, zds->ddict); + CHECK_F(ZSTD_decompressBegin_usingDDict(zds->dctx, zds->ddict)); { size_t const h1Size = ZSTD_nextSrcSizeToDecompress(zds->dctx); /* == ZSTD_frameHeaderSize_prefix */ CHECK_F(ZSTD_decompressContinue(zds->dctx, NULL, 0, zds->headerBuffer, h1Size)); { size_t const h2Size = ZSTD_nextSrcSizeToDecompress(zds->dctx);