]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix maybe-uninitialized pointer
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 May 2019 18:01:56 +0000 (18:01 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 29 May 2019 18:02:57 +0000 (18:02 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/kernel_socket.c

index 163e01db023f0335621ada1026b1e3b4ea8f3d9d..156ce50725ec758d6e99f5594006a9f38912bf1c 100644 (file)
@@ -523,7 +523,7 @@ static enum zebra_link_type sdl_to_zebra_link_type(unsigned int sdlt)
 int ifm_read(struct if_msghdr *ifm)
 {
        struct interface *ifp = NULL;
-       struct sockaddr_dl *sdl;
+       struct sockaddr_dl *sdl = NULL;
        char ifname[IFNAMSIZ];
        short ifnlen = 0;
        int maskbit;