aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-01-07 09:19:02 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-01-07 09:19:30 +0100
commitebfdfd9a1422354650d219603132590f04812be1 (patch)
tree0ea2e45362f34becde35ec2d5a8838b3b531c23c
parentc9a1be5a85b1c216e41448c23e753173c916fdee (diff)
downloadlibssh-ebfdfd9a1422354650d219603132590f04812be1.tar.gz
libssh-ebfdfd9a1422354650d219603132590f04812be1.tar.xz
libssh-ebfdfd9a1422354650d219603132590f04812be1.zip
examples: Make sure buffer is initialized.
-rw-r--r--tests/client/torture_request_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/client/torture_request_env.c b/tests/client/torture_request_env.c
index 3e34e45e..e4368664 100644
--- a/tests/client/torture_request_env.c
+++ b/tests/client/torture_request_env.c
@@ -61,7 +61,7 @@ static void torture_request_env(void **state)
{
ssh_session session = *state;
ssh_channel c;
- char buffer[4096];
+ char buffer[4096] = {0};
int nbytes;
int rc;
int lang_found = 0;