summaryrefslogtreecommitdiffstats
path: root/src/vlib/stats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-05-06 12:38:19 +0200
committerDamjan Marion <damarion@cisco.com>2022-05-06 12:45:11 +0200
commit4cfb46d4f8a8bc1f562b59b66696bc233f83356f (patch)
treef4e2d0bb00b5d3eef9ec2245a7809c73728f8f45 /src/vlib/stats
parent4ba3c0a8d82ff24492fbb858ab8fdef78bd3f4b9 (diff)
stats: strings in string vector are c strings
Type: fix Change-Id: I9cf9376f2813f7bceecc6a9d714dcb98df77615d Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/stats')
-rw-r--r--src/vlib/stats/stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/stats/stats.c b/src/vlib/stats/stats.c
index ee657089fd2..e3a1a8a04d6 100644
--- a/src/vlib/stats/stats.c
+++ b/src/vlib/stats/stats.c
@@ -341,6 +341,7 @@ vlib_stats_set_string_vector (vlib_stats_string_vector_t *svp,
va_start (va, fmt);
s = va_format (s, fmt, &va);
va_end (va);
+ vec_add1 (s, 0);
e->string_vector[vector_index] = s;