diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-11-27 17:55:48 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-27 17:55:48 +0100 |
commit | 060171028ca5dc1af3a90ed109fc04dc42ffc9f6 (patch) | |
tree | 22a04a50ab44b6f2834a3fa4cad7ec54ab2d75f4 /tests | |
parent | 7ecdc3e0d5660ae573e24fd8ff557c94bcdb9d4f (diff) | |
download | libssh-060171028ca5dc1af3a90ed109fc04dc42ffc9f6.tar.gz libssh-060171028ca5dc1af3a90ed109fc04dc42ffc9f6.tar.xz libssh-060171028ca5dc1af3a90ed109fc04dc42ffc9f6.zip |
tests: Fix a valgrind warning.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/torture_channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/torture_channel.c b/tests/unittests/torture_channel.c index 5bf34fd9..1d928b84 100644 --- a/tests/unittests/torture_channel.c +++ b/tests/unittests/torture_channel.c @@ -20,6 +20,7 @@ static void torture_channel_select(void **state) fd = open("/dev/null", 0); assert_true(fd > 2); + FD_ZERO(&readfds); FD_SET(fd, &readfds); for (i = 0; i < 10; i++) { |