zebra: Fix uninitialized value warning in dplane code

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>
This commit is contained in:
Mark Stapp 2019-01-11 13:38:41 -05:00
parent b707100701
commit 6fb51ccbf5

View File

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