diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-25 19:22:13 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-25 19:22:13 +0200 |
commit | 647ca0c0472b327425ad651748f2a0e7cbf176a0 (patch) | |
tree | e74a750e8061f1adaab26316d96bc079d0a2a989 | |
parent | 1452497b32a515b500d232fc530d3db52f4f0a6b (diff) | |
download | weechat-647ca0c0472b327425ad651748f2a0e7cbf176a0.zip |
tests: remove dead assignments
-rw-r--r-- | tests/unit/plugins/relay/test-relay-http.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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, |