From: Donald Sharp Date: Sat, 25 Aug 2018 22:27:11 +0000 (-0400) Subject: lib: Cleanup uninted `top` variable in ferr.c X-Git-Tag: frr-6.1-dev~15^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=184ce1c5d16850c56830ad02a6cb22151f553cf8;p=matthieu%2Ffrr.git 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 --- 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;