shell: fix coverity issue
Fixing a case where variable could be used without an initialization. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
bc5a3f25ad
commit
4fb20c40a1
1 changed files with 3 additions and 0 deletions
|
@ -608,6 +608,9 @@ static int execute(const struct shell *shell)
|
|||
return -ENOEXEC;
|
||||
}
|
||||
|
||||
/* Initialize help variable */
|
||||
help_entry.help = NULL;
|
||||
|
||||
/* Below loop is analyzing subcommands of found root command. */
|
||||
while (true) {
|
||||
if (cmd_lvl >= argc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue