From: Daniel Stenberg Date: Thu, 25 May 2017 11:01:44 +0000 (+0200) Subject: ssh: fix 'left' may be used uninitialized X-Git-Tag: curl-7_54_1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59cc0234e5be31d40aa91951984e8e00ca54f0ec;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/ssh.c b/lib/ssh.c index 3670c750ad..00aeca9781 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);