projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vswitch.ovsidl: Fix comments.
[openvswitch]
/
lib
/
netdev-linux.c
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index 73247030d9b66c5b016a20aa58c586f20e903d49..c33405fd33cf9b9f53db8ff0f5e4188c51703fea 100644
(file)
--- a/
lib/netdev-linux.c
+++ b/
lib/netdev-linux.c
@@
-203,7
+203,7
@@
netdev_linux_open(const char *name, char *suffix, int ethertype,
int error;
/* Allocate network device. */
int error;
/* Allocate network device. */
- netdev = x
calloc(1,
sizeof *netdev);
+ netdev = x
zalloc(
sizeof *netdev);
netdev_init(&netdev->netdev, suffix, &netdev_linux_class);
netdev->netdev_fd = -1;
netdev->tap_fd = -1;
netdev_init(&netdev->netdev, suffix, &netdev_linux_class);
netdev->netdev_fd = -1;
netdev->tap_fd = -1;