From: Pierce Lopez Date: Fri, 17 Sep 2021 08:47:34 +0000 (-0400) Subject: test: http_unix_socket_test: fix url could be freed uninitialized X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5303feff991fb002855cfb6f876ce7579c3916dd;p=libevent 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 --- 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;