From 7101434ec91e80e744e2bb8a01232aa60c0c4571 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 16 May 2017 16:28:24 -0700 Subject: [PATCH] pedantic : added one error check on a function which (today) never fails. But who knows, maybe tomorrow ... --- lib/decompress/zstd_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2