test: fix -Wuninitialized-const-pointer warning

Zero the struct. The compiler is not aware it's not actually used.
This commit is contained in:
Ben Noordhuis 2026-01-07 22:03:29 +01:00
parent 91ae02a63d
commit 0e413f74d1

View File

@ -21,6 +21,7 @@
#include "uv.h"
#include "task.h"
#include <string.h>
#ifdef _WIN32
# define putenv _putenv
@ -218,6 +219,7 @@ TEST_IMPL(threadpool_cancel_getaddrinfo) {
r = uv_getaddrinfo(loop, reqs + 2, getaddrinfo_cb, "fail", "fail", NULL);
ASSERT_OK(r);
memset(&hints, 0, sizeof(hints));
r = uv_getaddrinfo(loop, reqs + 3, getaddrinfo_cb, "fail", NULL, &hints);
ASSERT_OK(r);