summaryrefslogtreecommitdiffstats
path: root/lib/ferr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-26 00:27:11 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-26 01:13:32 +0200
commit184ce1c5d16850c56830ad02a6cb22151f553cf8 (patch)
tree6cc3acbb490ea36d14519ce48df521f2186ccb53 /lib/ferr.c
parentisisd: Include header for function declaration (diff)
downloadfrr-184ce1c5d16850c56830ad02a6cb22151f553cf8.tar.xz
frr-184ce1c5d16850c56830ad02a6cb22151f553cf8.zip
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>
Diffstat (limited to '')
-rw-r--r--lib/ferr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ferr.c b/lib/ferr.c
index d1b9d514b..17ec51c4b 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;