Module: monitoring-plugins Branch: master Commit: 0ab5e10d9b78af6e94a06ab990f0e16b24972c0d Author: RincewindsHat <12514511+rincewinds...@users.noreply.github.com> Date: Thu Oct 19 11:55:11 2023 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0ab5e10
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 153e492..c59fa7e 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));