aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-27 15:53:49 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-24 09:48:35 +0200
commit7e6b5402778f57962415aa7eb508e7353e6ebb58 (patch)
tree6c499b571c00064ebaef2ea720af69b4a91a3689 /examples
parent12ec1fed2f236eae8f4de3c17781b4da4bac0fcb (diff)
downloadlibssh-7e6b5402778f57962415aa7eb508e7353e6ebb58.tar.gz
libssh-7e6b5402778f57962415aa7eb508e7353e6ebb58.tar.xz
libssh-7e6b5402778f57962415aa7eb508e7353e6ebb58.zip
exmpales: Init rc in ssh_server_fork
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/ssh_server_fork.c3
1 files changed, 2 insertions, 1 deletions
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 = {