projects
/
project
/
relayd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb92ddd
)
route: fix an uninitialized variable
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 29 Oct 2015 14:18:52 +0000
(15:18 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 29 Oct 2015 14:24:35 +0000
(15:24 +0100)
Detected by Coverity CID
1331189
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
route.c
patch
|
blob
|
history
diff --git
a/route.c
b/route.c
index 5935b82c02e98e63a33165c0de902b2ccb1df1dc..df933b152176583ab75b1d08af1ba217edaa13ff 100644
(file)
--- a/
route.c
+++ b/
route.c
@@
-371,7
+371,7
@@
static void rtnl_dump_request(int nlmsg_type)
int relayd_rtnl_init(void)
{
- struct sockaddr_nl snl_local;
+ struct sockaddr_nl snl_local
= {}
;
rtnl_sock.fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
if (rtnl_sock.fd < 0) {