From 0821550b4d304da8b5f092a75311f13d288dee95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Dec 2020 16:04:45 +0100 Subject: Initialize all variables --- src/jalv_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jalv_console.c') diff --git a/src/jalv_console.c b/src/jalv_console.c index f376333..d000826 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -165,8 +165,8 @@ static void jalv_process_command(Jalv* jalv, const char* cmd) { char sym[1024]; - uint32_t index; - float value; + uint32_t index = 0; + float value = 0.0f; if (!strncmp(cmd, "help", 4)) { fprintf(stderr, "Commands:\n" -- cgit v1.2.1