Skip to content
Permalink
Browse files

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 <sharpd@cumulusnetworks.com>
  • Loading branch information...
donaldsharp committed Aug 25, 2018
1 parent 344b4a2 commit 184ce1c5d16850c56830ad02a6cb22151f553cf8
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 184ce1c

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.