From 50c3e24a7036519f1a6a194008637c5c6b1a2a21 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 19 Jan 2024 15:52:40 +0100 Subject: [PATCH] initialise "out" variables --- common/zmaxheap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/zmaxheap.c b/common/zmaxheap.c index d4e35e9b..a4d15a22 100644 --- a/common/zmaxheap.c +++ b/common/zmaxheap.c @@ -393,8 +393,8 @@ void zmaxheap_test() } - int32_t outv; - float outfv; + int32_t outv = 0; + float outfv = 0; int res = zmaxheap_remove_max(heap, &outv, &outfv); if (sz == 0) { assert(res == 0);