This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit c6740e0430894b14fa9cf57e7de4243144e14d48 Author: Magdalena Kasenberg <magdalena.kasenb...@codecoup.pl> AuthorDate: Thu Feb 25 16:03:31 2021 +0100 sensors/tsl2561: Fix uninitialized scalar variable Add missing rc initialization. Coverity issues 206485, 206486. --- hw/drivers/sensors/tsl2561/src/tsl2561_shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/drivers/sensors/tsl2561/src/tsl2561_shell.c b/hw/drivers/sensors/tsl2561/src/tsl2561_shell.c index c9bbf30..0af97d0 100644 --- a/hw/drivers/sensors/tsl2561/src/tsl2561_shell.c +++ b/hw/drivers/sensors/tsl2561/src/tsl2561_shell.c @@ -140,7 +140,7 @@ tsl2561_shell_cmd_gain(int argc, char **argv) { uint8_t val; uint8_t gain; - int rc; + int rc = 0; if (argc > 3) { return tsl2561_shell_err_too_many_args(argv[1]); @@ -179,7 +179,7 @@ tsl2561_shell_cmd_time(int argc, char **argv) { uint8_t time; long val; - int rc; + int rc = 0; if (argc > 3) { return tsl2561_shell_err_too_many_args(argv[1]);