1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-04 21:47:31 +03:00

fuzz: explicitly set initial value of global variables

This commit is contained in:
Yu Watanabe 2018-11-12 01:58:17 +09:00
parent 804a6a1759
commit f2a500eb41
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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);