aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp/app/vpp_get_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp/app/vpp_get_stats.c')
-rw-r--r--src/vpp/app/vpp_get_stats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vpp/app/vpp_get_stats.c b/src/vpp/app/vpp_get_stats.c
index a37dfca57a8..54d36abcbf2 100644
--- a/src/vpp/app/vpp_get_stats.c
+++ b/src/vpp/app/vpp_get_stats.c
@@ -179,6 +179,8 @@ reconnect:
for (i = 0; i < vec_len (dir); i++)
{
char *n = stat_segment_index_to_name (dir[i]);
+ if (!n)
+ continue;
printf ("%s\n", n);
free (n);
}