]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix unininitialized data usage found by clang
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 6 Jul 2017 20:48:57 +0000 (16:48 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 24 Jul 2017 17:51:41 +0000 (13:51 -0400)
clang 5.0 to the rescue!

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_ifchannel.c

index 5febd5c1ff9e1ec0704ca7f706ce9bfbec6fbdb6..afd9aa477985feaba842b0c182f5713d299b853b 100644 (file)
@@ -526,7 +526,7 @@ struct pim_ifchannel *pim_ifchannel_add(struct interface *ifp,
        if (!ch) {
                zlog_warn(
                        "%s: pim_ifchannel_new() failure for (S,G)=%s on interface %s",
-                       __PRETTY_FUNCTION__, up->sg_str, ifp->name);
+                       __PRETTY_FUNCTION__, pim_str_sg_dump(sg), ifp->name);
                return NULL;
        }