Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
stats: check if stats vector entry is empty
[vpp.git]
/
src
/
vpp
/
app
/
vpp_get_stats.c
diff --git
a/src/vpp/app/vpp_get_stats.c
b/src/vpp/app/vpp_get_stats.c
index
a37dfca
..
54d36ab
100644
(file)
--- 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);
}