From 647ca0c0472b327425ad651748f2a0e7cbf176a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 25 May 2024 19:22:13 +0200 Subject: tests: remove dead assignments --- tests/unit/plugins/relay/test-relay-http.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tests/unit/plugins') diff --git a/tests/unit/plugins/relay/test-relay-http.cpp b/tests/unit/plugins/relay/test-relay-http.cpp index 7e1831b19..36536ccb6 100644 --- a/tests/unit/plugins/relay/test-relay-http.cpp +++ b/tests/unit/plugins/relay/test-relay-http.cpp @@ -930,14 +930,12 @@ TEST(RelayHttp, Compress) } hashtable_remove_all (request->accept_encoding); - buffer = (char *)0x1; size = -1; buffer = relay_http_compress (request, NULL, 0, &size, NULL, 0); POINTERS_EQUAL(NULL, buffer); LONGS_EQUAL(0, size); hashtable_remove_all (request->accept_encoding); - buffer = (char *)0x1; size = -1; snprintf (encoding, sizeof (encoding), "test"); buffer = relay_http_compress (request, NULL, 0, &size, @@ -948,7 +946,6 @@ TEST(RelayHttp, Compress) /* no "Accept-Encoding" header was received => no compression */ hashtable_remove_all (request->accept_encoding); - buffer = (char *)0x1; size = -1; snprintf (encoding, sizeof (encoding), "test"); buffer = relay_http_compress (request, body, sizeof (body), &size, @@ -960,7 +957,6 @@ TEST(RelayHttp, Compress) /* "Accept-Encoding: gzip" => gzip compression */ hashtable_remove_all (request->accept_encoding); hashtable_set (request->accept_encoding, "gzip", ""); - buffer = (char *)0x1; size = -1; snprintf (encoding, sizeof (encoding), "test"); buffer = relay_http_compress (request, body, sizeof (body), &size, @@ -975,7 +971,6 @@ TEST(RelayHttp, Compress) hashtable_remove_all (request->accept_encoding); hashtable_set (request->accept_encoding, "gzip", ""); hashtable_set (request->accept_encoding, "zstd", ""); - buffer = (char *)0x1; size = -1; snprintf (encoding, sizeof (encoding), "test"); buffer = relay_http_compress (request, body, sizeof (body), &size, -- cgit v1.2.3