From: Donald Sharp Date: Fri, 29 Jun 2018 01:06:23 +0000 (-0400) Subject: zebra: Fix use of uninited variable X-Git-Tag: frr-6.1-dev~219^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ce4f1050ca87f39b8799f2f48020ad25f6e0ba15;p=matthieu%2Ffrr.git 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 --- diff --git a/zebra/zserv.c b/zebra/zserv.c index 14e0db40bf..7dbbd129d9 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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 */