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 <ema...@freebsd.org>
---
 lib/netdev-bsd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c
index 0b1a37c..f8b1188 100644
--- a/lib/netdev-bsd.c
+++ b/lib/netdev-bsd.c
@@ -453,7 +453,7 @@ netdev_bsd_listen(struct netdev *netdev_)
     struct netdev_bsd *netdev = netdev_bsd_cast(netdev_);
     char errbuf[PCAP_ERRBUF_SIZE];
     int error;
-    int fd;
+    int fd = -1;
     int one = 1;
 
     if (netdev->netdev_fd >= 0) {
-- 
1.7.10.3
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to