From: Ole Troan Date: Wed, 19 Dec 2018 11:28:46 +0000 (+0100) Subject: Stats: Updated wrong slot on new vector X-Git-Tag: v19.04-rc0~125 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=c6cb18b29d50d522d54b04587b13becc8363ec5c Stats: Updated wrong slot on new vector Change-Id: Ibf6008fd4e780a8c6fa676c7f7ba2f1cd98e72a9 Signed-off-by: Ole Troan --- diff --git a/src/vpp/stats/stat_segment.c b/src/vpp/stats/stat_segment.c index 9b6b37b934f..793936bf08f 100644 --- a/src/vpp/stats/stat_segment.c +++ b/src/vpp/stats/stat_segment.c @@ -115,7 +115,6 @@ vlib_stats_pop_heap (void *cm_arg, void *oldheap, stat_directory_type_t type) strncpy (e.name, stat_segment_name, 128 - 1); e.type = type; vec_add1 (sm->directory_vector, e); - vector_index++; } stat_segment_directory_entry_t *ep = &sm->directory_vector[vector_index];