From 0ab5e10d9b78af6e94a06ab990f0e16b24972c0d Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:55:11 +0200 Subject: check_curl: Initialize pointer before usage --- plugins/check_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 153e492f..c59fa7ef 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -395,7 +395,7 @@ lookup_host (const char *host, char *buf, size_t buflen) char addrstr[100]; size_t addrstr_len; int errcode; - void *ptr; + void *ptr = { 0 }; size_t buflen_remaining = buflen - 1; memset (&hints, 0, sizeof (hints)); -- cgit v1.2.3-74-g34f1