diff options
| author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 01:58:17 +0900 |
|---|---|---|
| committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 01:58:17 +0900 |
| commit | f2a500eb414dcd0d6e1eef70f2303c689b5d788d (patch) | |
| tree | e9eb15871ed110aaa5f23f05241c8fa431285d30 /src/fuzz | |
| parent | 804a6a17597152a56526a6556ce684d644be55e8 (diff) | |
| download | systemd-f2a500eb414dcd0d6e1eef70f2303c689b5d788d.tar.gz | |
fuzz: explicitly set initial value of global variables
Diffstat (limited to 'src/fuzz')
| -rw-r--r-- | src/fuzz/fuzz-dhcp6-client.c | 2 | ||||
| -rw-r--r-- | src/fuzz/fuzz-ndisc-rs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fuzz/fuzz-dhcp6-client.c b/src/fuzz/fuzz-dhcp6-client.c index 0417062c5f..c9bc2b3815 100644 --- a/src/fuzz/fuzz-dhcp6-client.c +++ b/src/fuzz/fuzz-dhcp6-client.c @@ -10,7 +10,7 @@ #include "fd-util.h" #include "fuzz.h" -static int test_dhcp_fd[2]; +static int test_dhcp_fd[2] = { -1, -1 }; int dhcp6_network_send_udp_socket(int s, struct in6_addr *server_address, const void *packet, size_t len) { diff --git a/src/fuzz/fuzz-ndisc-rs.c b/src/fuzz/fuzz-ndisc-rs.c index 9c017acdeb..389b545ac2 100644 --- a/src/fuzz/fuzz-ndisc-rs.c +++ b/src/fuzz/fuzz-ndisc-rs.c @@ -10,7 +10,7 @@ #include "socket-util.h" #include "ndisc-internal.h" -static int test_fd[2]; +static int test_fd[2] = { -1, -1 }; int icmp6_bind_router_solicitation(int index) { assert_se(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0, test_fd) >= 0); |
