route: fix an uninitialized variable
[project/relayd.git] / route.c
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) {