summaryrefslogtreecommitdiffstats
path: root/src/vat/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vat/plugin.c')
-rw-r--r--src/vat/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vat/plugin.c b/src/vat/plugin.c
index 09a96fd2ca4..bc780001bbd 100644
--- a/src/vat/plugin.c
+++ b/src/vat/plugin.c
@@ -155,7 +155,7 @@ vat_load_new_plugins (plugin_main_t * pm)
if (load_one_plugin (pm, pi))
{
vec_free (plugin_name);
- _vec_len (pm->plugin_info) = vec_len (pm->plugin_info) - 1;
+ vec_set_len (pm->plugin_info, vec_len (pm->plugin_info) - 1);
continue;
}
hash_set_mem (pm->plugin_by_name_hash, plugin_name,