diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-02-05 11:15:45 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-02-05 15:23:19 +0100 |
commit | 8f850585ddff035b8f680bb8fec56e14c2f2f96f (patch) | |
tree | cb848784198cd50018ca6469234797ef371ca6f6 /src | |
parent | 4b07157fc6fab92cbc9ad1919c892462b41a5712 (diff) | |
download | libssh-8f850585ddff035b8f680bb8fec56e14c2f2f96f.tar.gz libssh-8f850585ddff035b8f680bb8fec56e14c2f2f96f.tar.xz libssh-8f850585ddff035b8f680bb8fec56e14c2f2f96f.zip |
session: Fixed possible uninitialized return of ret.
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c index 83436dc..02e48d0 100644 --- a/src/session.c +++ b/src/session.c @@ -416,7 +416,7 @@ int ssh_handle_packets(ssh_session session, int timeout) { */ int ssh_handle_packets_termination(ssh_session session, int timeout, ssh_termination_function fct, void *user){ - int ret; + int ret = SSH_ERROR; while(!fct(user)){ ret = ssh_handle_packets(session, timeout); if(ret == SSH_ERROR) |