]> git.proxmox.com Git - mirror_frr.git/commitdiff
bfdd: Prevent coverity from thinking values are uninited
authorDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 20:58:29 +0000 (16:58 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 20:58:29 +0000 (16:58 -0400)
Coverity is claiming that bfdd is able got have bglobal.bg_use_dplane
can be true, while dplane_addr can be uninitialized.  Not really
possible since global variables are initialized to all 0's.  In
any event.  Force it to think it can't go there.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bfdd/bfdd.c

index c7649415133ea10effef0fda327e10818c686259..7ef229da1bb73a6b0c593d0599bb4533bb19cd0d 100644 (file)
@@ -337,6 +337,8 @@ int main(int argc, char *argv[])
        bool ctlsockused = false;
        int opt;
 
+       bglobal.bg_use_dplane = false;
+
        /* Initialize system sockets. */
        bg_init();