zebra: Fix use of uninited variable

Allow compiler to think the value is actually set to
something useful in an impossible case.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-06-28 21:06:23 -04:00
parent d6076845b3
commit ce4f1050ca

View File

@ -198,7 +198,7 @@ static int zserv_write(struct thread *thread)
{
struct zserv *client = THREAD_ARG(thread);
struct stream *msg;
uint32_t wcmd;
uint32_t wcmd = 0;
struct stream_fifo *cache;
/* If we have any data pending, try to flush it first */