From 6fb51ccbf578abafd6be2011ae9b06fef8ee302b Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Fri, 11 Jan 2019 13:38:41 -0500 Subject: 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 --- zebra/zebra_dplane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zebra') diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index c7713c85f..feede21cd 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -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) { -- cgit v1.2.3