aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/elf.c')
-rw-r--r--src/vppinfra/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/elf.c b/src/vppinfra/elf.c
index 7a74fad4c4f..d11fd7e99a9 100644
--- a/src/vppinfra/elf.c
+++ b/src/vppinfra/elf.c
@@ -1975,7 +1975,7 @@ elf_create_section_with_contents (elf_main_t * em,
if ((p = hash_get_mem (em->section_by_name, section_name)))
{
s = vec_elt_at_index (em->sections, p[0]);
- _vec_len (s->contents) = 0;
+ vec_set_len (s->contents, 0);
c = s->contents;
}
else