ssdk-shell: fix uninitialized tmpbool

Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
Sean Khan 2024-04-13 15:59:09 -04:00
parent 2b4e3b2b37
commit de0a338571

View File

@ -0,0 +1,13 @@
Index: qca-ssdk-shell-12.4.r4-2023-10-23-001660c/src/shell/shell_io.c
===================================================================
--- qca-ssdk-shell-12.4.r4-2023-10-23-001660c.orig/src/shell/shell_io.c
+++ qca-ssdk-shell-12.4.r4-2023-10-23-001660c/src/shell/shell_io.c
@@ -40434,7 +40434,7 @@ sw_error_t
cmd_data_check_tunnel_flags_parser(char *cmd_str, void * val, a_uint32_t size)
{
char *cmd;
- a_bool_t tmpbool;
+ a_bool_t tmpbool = A_FALSE;;
a_uint32_t tmpdata = 0;
sw_error_t rv;
fal_tunnel_flags_excep_parser_ctrl_t entry;