diff options
Diffstat (limited to 'src/tests/test_compression.cpp')
-rw-r--r-- | src/tests/test_compression.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/test_compression.cpp b/src/tests/test_compression.cpp index affc6040d..fd247803a 100644 --- a/src/tests/test_compression.cpp +++ b/src/tests/test_compression.cpp @@ -58,6 +58,7 @@ class Compression_Tests : public Test std::vector<Test::Result> run() override { std::vector<Test::Result> results; + const size_t text_len = strlen(text_str); for(std::string algo : { "zlib", "deflate", "gzip", "bz2", "lzma" }) { @@ -75,8 +76,6 @@ class Compression_Tests : public Test continue; } - const size_t text_len = strlen(text_str); - const Botan::secure_vector<uint8_t> empty; const Botan::secure_vector<uint8_t> all_zeros(text_len, 0); const Botan::secure_vector<uint8_t> random_binary = Test::rng().random_vec(text_len); |