summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-08-28 21:39:57 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-08-28 21:39:57 (GMT)
commit04115904adc237dbb2a4224728b0f5a49d617703 (patch)
tree42a4b7932b046c8c66715d3d1cf7eb276a601205
parent2b8b66d41e5c077a1b127a453b8373f05c56e51d (diff)
downloadmonitoring-plugins-04115904adc237dbb2a4224728b0f5a49d617703.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 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
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