aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2021-04-01 11:58:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-04-01 11:58:32 +0200
commitb59184fc8917d76b92de39b650e8ef055b522075 (patch)
tree3afb843cb2c13134e79997b9480f57af091bddbc /doc
parentd5099dec54a43fd51a847c5b47c78597b23a8a5c (diff)
downloadlibssh-b59184fc8917d76b92de39b650e8ef055b522075.tar.gz
libssh-b59184fc8917d76b92de39b650e8ef055b522075.tar.xz
libssh-b59184fc8917d76b92de39b650e8ef055b522075.zip
doc: Fix uninitialized variable in example code
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/forwarding.dox2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/forwarding.dox b/doc/forwarding.dox
index bb93c7b1..ca3b94f8 100644
--- a/doc/forwarding.dox
+++ b/doc/forwarding.dox
@@ -101,7 +101,7 @@ used to retrieve google's home page from the remote SSH server.
int direct_forwarding(ssh_session session)
{
ssh_channel forwarding_channel;
- int rc;
+ int rc = SSH_ERROR;
char *http_get = "GET / HTTP/1.1\nHost: www.google.com\n\n";
int nbytes, nwritten;