From: Nick Terrell Date: Mon, 25 Sep 2017 20:28:45 +0000 (-0700) Subject: [fuzz] Make simple_round_trip compile cleanly X-Git-Tag: v1.3.2~3^2~31^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfad5568b5318adf6766de6deaaf4f9b0cc1c668;p=thirdparty%2Fzstd.git [fuzz] Make simple_round_trip compile cleanly --- diff --git a/tests/fuzz/simple_round_trip.c b/tests/fuzz/simple_round_trip.c index f853485ad..617e45df6 100644 --- a/tests/fuzz/simple_round_trip.c +++ b/tests/fuzz/simple_round_trip.c @@ -38,10 +38,11 @@ static size_t roundTripTest(void *result, size_t resultCapacity, if (FUZZ_rand(&seed) & 1) { ZSTD_inBuffer in = {src, srcSize, 0}; ZSTD_outBuffer out = {compressed, compressedCapacity, 0}; + size_t err; ZSTD_CCtx_reset(cctx); FUZZ_setRandomParameters(cctx, &seed); - size_t const err = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); + err = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); if (err != 0) { return err; }