[PATCH] httpapi/tests: Initialize response_buffer to 0 (Valgrind).
Sven Baars
sven.wine at gmail.com
Thu Sep 26 07:18:26 CDT 2019
Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
dlls/httpapi/tests/httpapi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/httpapi/tests/httpapi.c b/dlls/httpapi/tests/httpapi.c
index 5da7101417..b19a590147 100644
--- a/dlls/httpapi/tests/httpapi.c
+++ b/dlls/httpapi/tests/httpapi.c
@@ -614,6 +614,8 @@ static void test_v1_entity_body(void)
ret = HttpSendHttpResponse(queue, req->RequestId, 0, (HTTP_RESPONSE *)&response, NULL, NULL, NULL, 0, NULL, NULL);
ok(!ret, "Got error %u.\n", ret);
+ memset(response_buffer, 0, sizeof(response_buffer));
+
ret = recv(s, response_buffer, sizeof(response_buffer), 0);
ok(ret > 0, "recv() failed.\n");
if (winetest_debug > 1)
--
2.17.1
More information about the wine-devel
mailing list