aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 17:55:48 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:53:53 +0100
commit4884f1d6fcea09ea8025b9c1d753469a8d32cffa (patch)
treef1482c6c81ef4bfd154146845bd925a7d04e949a
parentead1c4b1686ed0c25c69df695ecb05e1549d891f (diff)
downloadlibssh-4884f1d6fcea09ea8025b9c1d753469a8d32cffa.tar.gz
libssh-4884f1d6fcea09ea8025b9c1d753469a8d32cffa.tar.xz
libssh-4884f1d6fcea09ea8025b9c1d753469a8d32cffa.zip
tests: Fix a valgrind warning.
-rw-r--r--tests/unittests/torture_channel.c1
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++) {