aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-05-25 13:01:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-25 13:02:29 +0200
commit59cc0234e5be31d40aa91951984e8e00ca54f0ec (patch)
treed40cb0a6b2f11524917508f3d99dde3de56bfe6c
parent8ab22a74533acee61af31c48e75269822f408cb4 (diff)
ssh: fix 'left' may be used uninitialized
follow-up to f31760e63b4e Reported-by: Michael Kaufmann Bug: https://github.com/curl/curl/pull/1495#issuecomment-303982793
-rw-r--r--lib/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 3670c750a..00aeca978 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2824,7 +2824,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
while((sshc->state != SSH_STOP) && !result) {
bool block;
- time_t left;
+ time_t left = 1000;
struct timeval now = Curl_tvnow();
result = ssh_statemach_act(conn, &block);