From 184ce1c5d16850c56830ad02a6cb22151f553cf8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 25 Aug 2018 18:27:11 -0400 Subject: [PATCH] lib: Cleanup uninted `top` variable in ferr.c The `top` variable could possibly be used without any initialization, remove the possibility. Signed-off-by: Donald Sharp --- lib/ferr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ferr.c b/lib/ferr.c index d1b9d514b4..17ec51c4bf 100644 --- a/lib/ferr.c +++ b/lib/ferr.c @@ -107,7 +107,7 @@ struct log_ref *log_ref_get(uint32_t code) void log_ref_display(struct vty *vty, uint32_t code, bool json) { struct log_ref *ref; - struct json_object *top, *obj; + struct json_object *top = NULL, *obj = NULL; struct list *errlist; struct listnode *ln; -- 2.39.5