Sven Baars : httpapi/tests: Initialize response_buffer to 0 (Valgrind).

Alexandre Julliard julliard at winehq.org
Thu Sep 26 15:51:20 CDT 2019


Module: wine
Branch: master
Commit: a1953e4e2cc9ef51b315c3d7c3543944368268ac
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a1953e4e2cc9ef51b315c3d7c3543944368268ac

Author: Sven Baars <sven.wine at gmail.com>
Date:   Thu Sep 26 14:18:26 2019 +0200

httpapi/tests: Initialize response_buffer to 0 (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)




More information about the wine-cvs mailing list