]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Fix uninitialized value warning in dplane code
authorMark Stapp <mjs@voltanet.io>
Fri, 11 Jan 2019 18:38:41 +0000 (13:38 -0500)
committerMark Stapp <mjs@voltanet.io>
Fri, 11 Jan 2019 18:38:41 +0000 (13:38 -0500)
Fix a gcc-8 warning (at least) about a possible uninitialized
value in the zebra_dplane code.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_dplane.c

index c7713c85f9d47ce13bfab39fac7803fd52532156..feede21cd9241984c52247957c79fd420fa58df1 100644 (file)
@@ -995,7 +995,7 @@ int dplane_provider_register(const char *name,
                             struct zebra_dplane_provider **prov_p)
 {
        int ret = 0;
-       struct zebra_dplane_provider *p, *last;
+       struct zebra_dplane_provider *p = NULL, *last;
 
        /* Validate */
        if (fp == NULL) {