fix test request memory initialization webdav

Sun, 01 May 2022 11:03:29 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 01 May 2022 11:03:29 +0200
branch
webdav
changeset 321
9bf375c4b5bd
parent 320
a40f7af1b670
child 322
f26bd6e17594

fix test request memory initialization

src/server/test/testutils.c file | annotate | diff | comparison | revisions
--- a/src/server/test/testutils.c	Sun May 01 10:56:36 2022 +0200
+++ b/src/server/test/testutils.c	Sun May 01 11:03:29 2022 +0200
@@ -48,6 +48,7 @@
 
 Request* testutil_request(pool_handle_t *pool, const char *method, const char *uri) {
     NSAPIRequest *rq = pool_malloc(pool, sizeof(NSAPIRequest));
+    ZERO(rq, sizeof(NSAPIRequest));
     
     HTTPRequest httprequest;
     ZERO(&httprequest, sizeof(HTTPRequest));

mercurial