summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp_peer.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 11:59:43 +0200
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 11:59:43 +0200
commit7ba8463506b3d246c246a0caa0d78f0d16b321c6 (patch)
treec0fc8dd4c8e0c503015f0f0dbe8ed7f4069affc1 /plugins/check_ntp_peer.c
parent0ab5e10d9b78af6e94a06ab990f0e16b24972c0d (diff)
downloadmonitoring-plugins-7ba8463.tar.gz
check_ntp: Initialize intermediate results in any case
Diffstat (limited to 'plugins/check_ntp_peer.c')
-rw-r--r--plugins/check_ntp_peer.c3
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
559int main(int argc, char *argv[]){ 559int 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