]> git.proxmox.com Git - mirror_frr.git/commitdiff
Fix the "Uninitialized argument value" of clang SA.
authorHung-Weic Chiu <sppsorrg@gmail.com>
Sat, 29 Apr 2017 15:34:18 +0000 (15:34 +0000)
committerHung-Weic Chiu <sppsorrg@gmail.com>
Sat, 29 Apr 2017 15:35:32 +0000 (15:35 +0000)
Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
cumulus/start-stop-daemon.c
ospfd/ospf_vty.c
zebra/zserv.c

index 4d447d9051bbefc5c0063b412106b72633094bbc..a3d3c3dd33d8aa2d1c6ef1711828b35536074fe4 100644 (file)
@@ -811,6 +811,7 @@ run_stop_schedule(void)
 
        anykilled = 0;
        retry_nr = 0;
+       n_killed = 0;
 
        if (schedule == NULL) {
                do_stop(signal_nr, quietmode, &n_killed, &n_notkilled, 0);
index 38e006e92835083880cd4e09982913b2f7942ac8..2724df98a0dcc571644ca1fcacd8c4bf03dd89cc 100644 (file)
@@ -7059,7 +7059,7 @@ DEFUN (no_ip_ospf_dead_interval,
        "Address of interface")
 {
   struct interface *ifp = vty->index;
-  struct in_addr addr;
+  struct in_addr addr = { .s_addr = 0L};
   int ret;
   struct ospf_if_params *params;
   struct ospf_interface *oi;
index 8618e5c3715a157fed52f0a7ae162e19d8084f02..39fc226ea762995a0f848cae1d2c5707da1732c2 100644 (file)
@@ -1519,7 +1519,7 @@ zread_ipv6_delete (struct zserv *client, u_short length, struct zebra_vrf *zvrf)
   struct stream *s;
   struct zapi_ipv6 api;
   struct in6_addr nexthop;
-  union g_addr *pnexthop;
+  union g_addr *pnexthop = NULL;
   unsigned long ifindex;
   struct prefix p;