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:
parent
804a6a1759
commit
f2a500eb41
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user