Mercurial > dropbear
diff fuzz-wrapfd.c @ 1746:28ab2cdb84bf
Fix fuzzer build
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 18 Oct 2020 23:32:39 +0800 |
parents | 6cf465af5d9f |
children |
line wrap: on
line diff
--- a/fuzz-wrapfd.c Sun Oct 18 22:53:44 2020 +0800 +++ b/fuzz-wrapfd.c Sun Oct 18 23:32:39 2020 +0800 @@ -21,7 +21,7 @@ int closeout; }; -static struct fdwrap wrap_fds[IOWRAP_MAXFD+1] = {0}; +static struct fdwrap wrap_fds[IOWRAP_MAXFD+1] = {{UNUSED, 0, 0}}; static int wrapfd_maxfd = -1; static unsigned short rand_state[3]; static buffer *input_buf; @@ -88,7 +88,6 @@ int wrapfd_read(int fd, void *out, size_t count) { size_t maxread; - buffer *buf; if (!fuzz.wrapfds) { return read(fd, out, count);