summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 09:55:11 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 09:55:11 (GMT)
commit0ab5e10d9b78af6e94a06ab990f0e16b24972c0d (patch)
treec21e266f78a6597339fc536f0f771aa6ea075615 /plugins
parent0c92b3908341f41b2202d04efe5fd46f1462dbe3 (diff)
downloadmonitoring-plugins-0ab5e10d9b78af6e94a06ab990f0e16b24972c0d.tar.gz
check_curl: Initialize pointer before usage
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c2
1 files changed, 1 insertions, 1 deletions
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)
395 char addrstr[100]; 395 char addrstr[100];
396 size_t addrstr_len; 396 size_t addrstr_len;
397 int errcode; 397 int errcode;
398 void *ptr; 398 void *ptr = { 0 };
399 size_t buflen_remaining = buflen - 1; 399 size_t buflen_remaining = buflen - 1;
400 400
401 memset (&hints, 0, sizeof (hints)); 401 memset (&hints, 0, sizeof (hints));