zebra: fix uninitialized value

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2018-04-24 23:06:11 -04:00
parent 727c9b9961
commit e1de21d760

View File

@ -885,7 +885,7 @@ static void zebra_show_client_detail(struct vty *vty, struct zserv *client)
last_read_time = (time_t) atomic_load_explicit(&client->last_read_time,
memory_order_relaxed);
last_read_time = (time_t) atomic_load_explicit(&client->last_write_time,
last_write_time = (time_t) atomic_load_explicit(&client->last_write_time,
memory_order_relaxed);
last_read_cmd = atomic_load_explicit(&client->last_read_cmd,
@ -942,7 +942,7 @@ static void zebra_show_client_brief(struct vty *vty, struct zserv *client)
memory_order_relaxed);
last_read_time = (time_t)atomic_load_explicit(&client->last_read_time,
memory_order_relaxed);
last_read_time = (time_t) atomic_load_explicit(&client->last_write_time,
last_write_time = (time_t)atomic_load_explicit(&client->last_write_time,
memory_order_relaxed);
vty_out(vty, "%-8s%12s %12s%12s%8d/%-8d%8d/%-8d\n",