summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPierce Lopez <pierce.lopez@gmail.com>2021-09-17 04:47:34 -0400
committerPierce Lopez <pierce.lopez@gmail.com>2021-09-17 10:33:55 -0400
commit5303feff991fb002855cfb6f876ce7579c3916dd (patch)
treecf8c6b1341546c0e2406b6383dbb95639e7a46e1 /test
parent4f73bf3a468b71e5f4f55442a99086feb863d1b0 (diff)
downloadlibevent-5303feff991fb002855cfb6f876ce7579c3916dd.tar.gz
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
Diffstat (limited to 'test')
-rw-r--r--test/regress_http.c2
1 files changed, 1 insertions, 1 deletions
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;