]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #2583 from donaldsharp/more_warnings
authorRuss White <russ@riw.us>
Fri, 29 Jun 2018 17:39:42 +0000 (13:39 -0400)
committerGitHub <noreply@github.com>
Fri, 29 Jun 2018 17:39:42 +0000 (13:39 -0400)
zebra: Fix use of uninited variable

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 */