From 7e6b5402778f57962415aa7eb508e7353e6ebb58 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 27 Sep 2018 15:53:49 +0200 Subject: [PATCH] exmpales: Init rc in ssh_server_fork Signed-off-by: Andreas Schneider --- examples/ssh_server_fork.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ssh_server_fork.c b/examples/ssh_server_fork.c index 217c5298..3cc70206 100644 --- a/examples/ssh_server_fork.c +++ b/examples/ssh_server_fork.c @@ -472,7 +472,8 @@ static int process_stderr(socket_t fd, int revents, void *userdata) { } static void handle_session(ssh_event event, ssh_session session) { - int n, rc; + int n; + int rc = 0; /* Structure for storing the pty size. */ struct winsize wsize = {