summaryrefslogtreecommitdiffstats
path: root/lib/table.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-06 20:20:16 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 20:02:57 +0200
commit53a394720e0f7e0495291a9d828879eebd4ac167 (patch)
treee9c41196aed363cda7b615da25e737a76e365029 /lib/table.h
parentlib: fix uninitialized variable in backtrace output (diff)
downloadfrr-53a394720e0f7e0495291a9d828879eebd4ac167.tar.xz
frr-53a394720e0f7e0495291a9d828879eebd4ac167.zip
lib: fix false compiler warning
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/table.h')
-rw-r--r--lib/table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/table.h b/lib/table.h
index 14be7ab65..eefd99254 100644
--- a/lib/table.h
+++ b/lib/table.h
@@ -298,6 +298,8 @@ static inline struct route_node *route_table_iter_next(route_table_iter_t *iter)
return NULL;
default:
+ /* Suppress uninitialized variable warning */
+ node = NULL;
assert(0);
}