summaryrefslogtreecommitdiffstats
path: root/vlib-api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-07-25 16:13:00 -0400
committerKeith Burns <alagalah@gmail.com>2016-07-25 22:47:19 +0000
commit5c55e6bd04a04cdf79329461b38e362b25a8c143 (patch)
tree9f45ea84c1fc548bbe922b526fcb72906d5ae5d0 /vlib-api
parent1d9897882360d5a8034a770e0408dadeb6ea5b79 (diff)
Author: Dave Barach <dave@barachs.net>
--- log message follows this line -- Coverity: fix minor bug in test code Change-Id: I5921874b4902fc7fe140a9b22852e7d18583e7ae Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib-api')
-rw-r--r--vlib-api/vlibapi/node_serialize.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vlib-api/vlibapi/node_serialize.c b/vlib-api/vlibapi/node_serialize.c
index 5eb530264e0..b1e4ae18697 100644
--- a/vlib-api/vlibapi/node_serialize.c
+++ b/vlib-api/vlibapi/node_serialize.c
@@ -356,8 +356,10 @@ test_node_serialize_command_fn (vlib_main_t * vm,
for (k = 0; k < vec_len (node->next_nodes); k++)
{
if (node->next_nodes[k] != ~0)
- next_node = nodes[node->next_nodes[k]];
- vlib_cli_output (vm, " [%d] %s", k, next_node->name);
+ {
+ next_node = nodes[node->next_nodes[k]];
+ vlib_cli_output (vm, " [%d] %s", k, next_node->name);
+ }
}
}
}