summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-06 18:01:56 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 18:02:57 +0000
commitee74220baf60f260795157f08c7c94c22fd225e7 (patch)
treed7163a826acdb72b08df4409514cccec56291217
parent8054cf970b5b56252c458593328761d54ae77483 (diff)
zebra: fix maybe-uninitialized pointer
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--zebra/kernel_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 163e01db02..156ce50725 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -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;