summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Weic Chiu <sppsorrg@gmail.com>2017-04-29 15:34:18 +0000
committerHung-Weic Chiu <sppsorrg@gmail.com>2017-04-29 15:35:32 +0000
commitc604467a081a332848bf486a207649d79abbe3fd (patch)
tree21791b6458db6a4a65624f4ca763a7e72ebbbe97
parent3a6570a1f145c49155d72a815441025085dd45ad (diff)
Fix the "Uninitialized argument value" of clang SA.
Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
-rw-r--r--cumulus/start-stop-daemon.c1
-rw-r--r--ospfd/ospf_vty.c2
-rw-r--r--zebra/zserv.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/cumulus/start-stop-daemon.c b/cumulus/start-stop-daemon.c
index 4d447d9051..a3d3c3dd33 100644
--- a/cumulus/start-stop-daemon.c
+++ b/cumulus/start-stop-daemon.c
@@ -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);
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 38e006e928..2724df98a0 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -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;
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 8618e5c371..39fc226ea7 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -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;