Module: wine Branch: master Commit: a1953e4e2cc9ef51b315c3d7c3543944368268ac URL: https://source.winehq.org/git/wine.git/?a=commit;h=a1953e4e2cc9ef51b315c3d7c...
Author: Sven Baars sven.wine@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@gmail.com Signed-off-by: Alexandre Julliard julliard@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)