]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
pedantic : added one error check 702/head
authorYann Collet <cyan@fb.com>
Tue, 16 May 2017 23:28:24 +0000 (16:28 -0700)
committerYann Collet <cyan@fb.com>
Tue, 16 May 2017 23:28:24 +0000 (16:28 -0700)
on a function which (today) never fails.
But who knows, maybe tomorrow ...

lib/decompress/zstd_decompress.c

index c1ba53ea9b6cca663e4b6a0fb50816eba54a6198..0c61960ec4ac0ef888ad7f5b1d4770c400e6e713 100644 (file)
@@ -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);