Fix the "Uninitialized argument value" of clang SA.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
This commit is contained in:
Hung-Weic Chiu 2017-04-29 15:34:18 +00:00
parent 3a6570a1f1
commit c604467a08
3 changed files with 3 additions and 2 deletions

View 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);

View 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;

View 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;