summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-08-28 23:39:57 +0200
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-08-28 23:39:57 +0200
commit04115904adc237dbb2a4224728b0f5a49d617703 (patch)
tree42a4b7932b046c8c66715d3d1cf7eb276a601205
parent2b8b66d41e5c077a1b127a453b8373f05c56e51d (diff)
downloadmonitoring-plugins-0411590.tar.gz
check_ssh: Always initialize elapsed_time
-rw-r--r--plugins/check_ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 34ef37b7..3c1a594d 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
222 char *ssh_server = NULL; 222 char *ssh_server = NULL;
223 static char *rev_no = VERSION; 223 static char *rev_no = VERSION;
224 struct timeval tv; 224 struct timeval tv;
225 double elapsed_time; 225 double elapsed_time = 0;
226 226
227 gettimeofday(&tv, NULL); 227 gettimeofday(&tv, NULL);
228 228