From 060171028ca5dc1af3a90ed109fc04dc42ffc9f6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 27 Nov 2013 17:55:48 +0100 Subject: [PATCH] tests: Fix a valgrind warning. --- tests/unittests/torture_channel.c | 1 + 1 file changed, 1 insertion(+) 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++) {