From 5303feff991fb002855cfb6f876ce7579c3916dd Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Fri, 17 Sep 2021 04:47:34 -0400 Subject: [PATCH] test: http_unix_socket_test: fix url could be freed uninitialized > regress_http.c:2279:2: warning: variable 'uri' is used uninitialized > whenever 'if' condition is true --- test/regress_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regress_http.c b/test/regress_http.c index 7ecec8b4..b612ff97 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -2270,7 +2270,7 @@ static int evhttp_bind_unixsocket(struct evhttp *httpd, const char *path) static void http_unix_socket_test(void *arg) { struct basic_test_data *data = arg; - struct evhttp_uri *uri; + struct evhttp_uri *uri = NULL; struct evhttp_connection *evcon = NULL; struct evhttp_request *req; -- 2.40.0