]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Fix use of uninited variable 2583/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Jun 2018 01:06:23 +0000 (21:06 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Jun 2018 01:06:23 +0000 (21:06 -0400)
Allow compiler to think the value is actually set to
something useful in an impossible case.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zserv.c

index 14e0db40bfb50c62d864f14a30716af10b375e7d..7dbbd129d9bce45e85d769ee197718064139619b 100644 (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 */