diff options
Diffstat (limited to 'src/vlib/global_funcs.h')
-rw-r--r-- | src/vlib/global_funcs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/global_funcs.h b/src/vlib/global_funcs.h index bbdbdef50b2..f51ec381d7e 100644 --- a/src/vlib/global_funcs.h +++ b/src/vlib/global_funcs.h @@ -23,7 +23,7 @@ always_inline vlib_main_t * vlib_get_main (void) { vlib_main_t *vm; - vm = vlib_mains ? vlib_mains[os_get_cpu_number ()] : &vlib_global_main; + vm = vlib_mains[os_get_cpu_number ()]; ASSERT (vm); return vm; } |