misc: fix issues reported by clang-15
Type: improvement
Change-Id: I3fbbda0378b72843ecd39a7e8592dedc9757793a
Signed-off-by: Damjan Marion <dmarion@me.com>
diff --git a/src/vlib/cli.c b/src/vlib/cli.c
index c43371e..9c53200 100644
--- a/src/vlib/cli.c
+++ b/src/vlib/cli.c
@@ -872,14 +872,14 @@
}
if (stats_segment)
{
- void *oldheap = vlib_stats_set_heap (0);
+ void *oldheap = vlib_stats_set_heap ();
was_enabled = clib_mem_trace_enable_disable (0);
u8 *s_in_svm = format (0, "%U\n", format_clib_mem_heap, 0, 1);
if (oldheap)
clib_mem_set_heap (oldheap);
u8 *s = vec_dup (s_in_svm);
- oldheap = vlib_stats_set_heap (0);
+ oldheap = vlib_stats_set_heap ();
vec_free (s_in_svm);
if (oldheap)
{