From: Nathan Moinvaziri Date: Sun, 11 Sep 2022 19:36:33 +0000 (-0400) Subject: Fixed undefined variable random_ints in adler32_copy benchmarks. X-Git-Tag: 2.1.0-beta1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f01072809baf988c2492283350241f11344c970a;p=thirdparty%2Fzlib-ng.git Fixed undefined variable random_ints in adler32_copy benchmarks. --- diff --git a/test/benchmarks/benchmark_adler32_copy.cc b/test/benchmarks/benchmark_adler32_copy.cc index 81fdc4a0c..2cc18015c 100644 --- a/test/benchmarks/benchmark_adler32_copy.cc +++ b/test/benchmarks/benchmark_adler32_copy.cc @@ -36,7 +36,8 @@ public: * control the _consistency_ of the results */ random_ints_src = (uint32_t *)zng_alloc(MAX_RANDOM_INTS_SIZE); random_ints_dst = (uint32_t *)zng_alloc(MAX_RANDOM_INTS_SIZE); - assert(random_ints != NULL); + assert(random_ints_src != NULL); + assert(random_ints_dst != NULL); for (int32_t i = 0; i < MAX_RANDOM_INTS; i++) { random_ints_src[i] = rand();