diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 11:55:11 +0200 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 11:55:11 +0200 |
| commit | 0ab5e10d9b78af6e94a06ab990f0e16b24972c0d (patch) | |
| tree | c21e266f78a6597339fc536f0f771aa6ea075615 | |
| parent | 0c92b3908341f41b2202d04efe5fd46f1462dbe3 (diff) | |
| download | monitoring-plugins-0ab5e10.tar.gz | |
check_curl: Initialize pointer before usage
| -rw-r--r-- | plugins/check_curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 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)); |
