From: Felix Fietkau Date: Thu, 29 Oct 2015 14:18:52 +0000 (+0100) Subject: route: fix an uninitialized variable X-Git-Url: http://git.archive.openwrt.org/modules/luci.http.html?a=commitdiff_plain;h=336dc6465e9475d3cc7eccad4a7079079ad3430a;p=project%2Frelayd.git route: fix an uninitialized variable Detected by Coverity CID 1331189 Signed-off-by: Felix Fietkau --- 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) {