diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-12 19:31:45 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-04-18 00:20:28 +0200 |
commit | ab62b2ce5da5adbbfcbb63922b06695a7b94e997 (patch) | |
tree | a572242a401c205a732a678645a06dd08cdfab5f | |
parent | 907b933a87ae21ad776c53a2dd7f04beb220b6bf (diff) | |
download | monitoring-plugins-ab62b2ce5da5adbbfcbb63922b06695a7b94e997.tar.gz |
Fixes for -Wuninitialized
-rw-r--r-- | plugins-root/check_icmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index edfd6949..f96207be 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -1432,6 +1432,7 @@ get_ip_address(const char *ifname) | |||
1432 | { | 1432 | { |
1433 | // TODO: Rewrite this so the function return an error and we exit somewhere else | 1433 | // TODO: Rewrite this so the function return an error and we exit somewhere else |
1434 | struct sockaddr_in ip; | 1434 | struct sockaddr_in ip; |
1435 | ip.sin_addr.s_addr = 0; // Fake inititialization to make compiler happy | ||
1435 | #if defined(SIOCGIFADDR) | 1436 | #if defined(SIOCGIFADDR) |
1436 | struct ifreq ifr; | 1437 | struct ifreq ifr; |
1437 | 1438 | ||