projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a27d0
)
netdev-bsd: Initialize variable to silence a compiler warning.
author
Ed Maste
<emaste@freebsd.org>
Wed, 8 Aug 2012 18:48:01 +0000
(18:48 +0000)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 8 Aug 2012 19:28:55 +0000
(12:28 -0700)
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>
lib/netdev-bsd.c
patch
|
blob
|
history
diff --git
a/lib/netdev-bsd.c
b/lib/netdev-bsd.c
index 0b1a37c3bfe6a156ab1248cdcf3306178e9046cb..f8b11880f96a67d96c45e1bb82eb5d159f9001d1 100644
(file)
--- 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) {