diff --git a/drivers/regulator/regulator_shell.c b/drivers/regulator/regulator_shell.c index ce7c262ed5c..626b74e678b 100644 --- a/drivers/regulator/regulator_shell.c +++ b/drivers/regulator/regulator_shell.c @@ -131,7 +131,7 @@ static int cmd_vlist(const struct shell *sh, size_t argc, char **argv) { const struct device *dev; unsigned int volt_cnt; - int32_t last_volt_uv; + int32_t last_volt_uv = 0; ARG_UNUSED(argc);