summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/node.c b/src/vlib/node.c
index 41b9ee73be6..2c408d6069a 100644
--- a/src/vlib/node.c
+++ b/src/vlib/node.c
@@ -364,7 +364,7 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r)
vec_add1 (nm->nodes, n);
/* Name is always a vector so it can be formatted with %v. */
- if (clib_mem_is_heap_object (vec_header (r->name, 0)))
+ if (clib_mem_is_heap_object (vec_header (r->name)))
n->name = vec_dup ((u8 *) r->name);
else
n->name = format (0, "%s", r->name);