2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

netdev-bsd: Initialize variable to silence a compiler warning.

FreeBSD's system compiler is a somewhat old version of GCC that produced
a spurious warning about a potential unitialized variable use.

Signed-off-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ed Maste
2012-08-08 18:48:01 +00:00
committed by Ben Pfaff
parent a7a27d0719
commit a78b6a9e19

View File

@@ -453,7 +453,7 @@ netdev_bsd_listen(struct netdev *netdev_)
struct netdev_bsd *netdev = netdev_bsd_cast(netdev_); struct netdev_bsd *netdev = netdev_bsd_cast(netdev_);
char errbuf[PCAP_ERRBUF_SIZE]; char errbuf[PCAP_ERRBUF_SIZE];
int error; int error;
int fd; int fd = -1;
int one = 1; int one = 1;
if (netdev->netdev_fd >= 0) { if (netdev->netdev_fd >= 0) {