1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-11 23:01:46 +03:00

tests: Use ZERO_STRUCT for readfds

This fixes a compiler warning on FreeBSD.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-08-20 16:17:33 +02:00
parent f433949dcd
commit 3b896750b8

View File

@ -12,13 +12,15 @@
static void torture_channel_select(void **state)
{
fd_set readfds = {0};
fd_set readfds;
int fd;
int rc;
int i;
(void)state; /* unused */
ZERO_STRUCT(readfds);
fd = open("/dev/null", 0);
assert_true(fd > 2);