From 8f850585ddff035b8f680bb8fec56e14c2f2f96f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 5 Feb 2011 11:15:45 +0100 Subject: session: Fixed possible uninitialized return of ret. --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit