diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 11:59:43 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 11:59:43 +0200 |
commit | 7ba8463506b3d246c246a0caa0d78f0d16b321c6 (patch) | |
tree | c0fc8dd4c8e0c503015f0f0dbe8ed7f4069affc1 /plugins | |
parent | 0ab5e10d9b78af6e94a06ab990f0e16b24972c0d (diff) | |
download | monitoring-plugins-7ba8463506b3d246c246a0caa0d78f0d16b321c6.tar.gz |
check_ntp: Initialize intermediate results in any case
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ntp_peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index d4e5fd9a..4fb9018c 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
@@ -557,7 +557,8 @@ char *perfd_truechimers (int num_truechimers) | |||
557 | } | 557 | } |
558 | 558 | ||
559 | int main(int argc, char *argv[]){ | 559 | int main(int argc, char *argv[]){ |
560 | int result, offset_result, stratum, num_truechimers, oresult, jresult, sresult, tresult; | 560 | int result, offset_result, stratum, num_truechimers; |
561 | int oresult, jresult, sresult, tresult = STATE_UNKNOWN; | ||
561 | double offset=0, jitter=0; | 562 | double offset=0, jitter=0; |
562 | char *result_line, *perfdata_line; | 563 | char *result_line, *perfdata_line; |
563 | 564 | ||