mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Use ZERO_STRUCT for readfds
This fixes a compiler warning on FreeBSD.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 3b896750b8)
This commit is contained in:
@@ -12,13 +12,15 @@
|
|||||||
|
|
||||||
static void torture_channel_select(void **state)
|
static void torture_channel_select(void **state)
|
||||||
{
|
{
|
||||||
fd_set readfds = {0};
|
fd_set readfds;
|
||||||
int fd;
|
int fd;
|
||||||
int rc;
|
int rc;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
(void)state; /* unused */
|
(void)state; /* unused */
|
||||||
|
|
||||||
|
ZERO_STRUCT(readfds);
|
||||||
|
|
||||||
fd = open("/dev/null", 0);
|
fd = open("/dev/null", 0);
|
||||||
assert_true(fd > 2);
|
assert_true(fd > 2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user