From 336dc6465e9475d3cc7eccad4a7079079ad3430a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 29 Oct 2015 15:18:52 +0100 Subject: [PATCH] route: fix an uninitialized variable Detected by Coverity CID 1331189 Signed-off-by: Felix Fietkau --- route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route.c b/route.c index 5935b82..df933b1 100644 --- 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) { -- 2.25.1