From 04115904adc237dbb2a4224728b0f5a49d617703 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 28 Aug 2024 23:39:57 +0200 Subject: check_ssh: Always initialize elapsed_time diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 34ef37b..3c1a594 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c @@ -222,7 +222,7 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol char *ssh_server = NULL; static char *rev_no = VERSION; struct timeval tv; - double elapsed_time; + double elapsed_time = 0; gettimeofday(&tv, NULL); -- cgit v0.10-9-g596f