From 7344e14e1b5737a6a482825d1efd771cb43ec962 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 27 Sep 2022 09:29:23 +0200 Subject: [PATCH] sys/shell/cmds/dfplayer.c: initialize `mode` --- sys/shell/cmds/dfplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/cmds/dfplayer.c b/sys/shell/cmds/dfplayer.c index 486edb6868..ba8d559182 100644 --- a/sys/shell/cmds/dfplayer.c +++ b/sys/shell/cmds/dfplayer.c @@ -172,7 +172,7 @@ static void _print_equalizer(dfplayer_t *dev) static void _print_mode(dfplayer_t *dev) { - dfplayer_mode_t mode; + dfplayer_mode_t mode = {0}; int retval = dfplayer_get_mode(dev, &mode); if (retval) { _print_error(retval);