Fix uninitialized variable

This commit is contained in:
Joseph C. Lehner 2016-02-17 00:51:04 +01:00
parent bc43f07291
commit 8103bf5d74

View file

@ -545,7 +545,7 @@ int ethsock_for_each_ip(struct ethsock *sock, ethsock_ip_callback_t callback,
struct ethsock_ip_callback_args args;
pcap_if_t *devs, *dev;
pcap_addr_t *addr;
int status;
int status = 0;
if (x_pcap_findalldevs(&devs) != 0) {
return -1;