summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-11-22 22:34:59 (GMT)
committerGitHub <noreply@github.com>2023-11-22 22:34:59 (GMT)
commit53a15f0c2c59a06f2d4f8f07c6b579b7d5272de3 (patch)
tree5e2e7e5f0103298390cecd1f867fd4da7caa7d47 /plugins/check_curl.c
parentf1e91405c3b51641b02228672c47e2b4aa1dd5f1 (diff)
parent7ba8463506b3d246c246a0caa0d78f0d16b321c6 (diff)
downloadmonitoring-plugins-53a15f0c2c59a06f2d4f8f07c6b579b7d5272de3.tar.gz
Merge pull request #1951 from RincewindsHat/compiler_warnings_maybe_unused
Fix compiler warning for uninitialized variable
Diffstat (limited to 'plugins/check_curl.c')
-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 9c0dc34..8f9a21d 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));