Fix a compilation failure in bio_comp_test.c
authorMatt Caswell <matt@openssl.org>
Mon, 24 Oct 2022 08:18:34 +0000 (09:18 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 24 Oct 2022 13:15:15 +0000 (14:15 +0100)
Compiling with clang, --strict-warnings and enable-zlib-dynamic resulted
in a compilation failure. This fixes it.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19480)

test/bio_comp_test.c

index 5dd13abd36c020f9ebaf4aa86f889638c3e37bf9..75ae46adb6fba30680548c652010fd2e30c1adc5 100644 (file)
@@ -25,8 +25,8 @@
 static int sizes[NUM_SIZES] = { 64, 512, 2048, 16 * 1024 };
 
 /* using global buffers */
-unsigned char *original = NULL;
-unsigned char *result = NULL;
+static unsigned char *original = NULL;
+static unsigned char *result = NULL;
 
 /*
  * For compression: