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 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)); -- cgit v0.10-9-g596f