Diff between 23b257aa47b62e2921eb8abc30129a28304c93fe and 799a9eb388c5418da37c327fc7316e4c423b8913

Changed Files

File Additions Deletions Status
src/shared/shell.c +1 -0 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index b57ae1b..5e9e5ea 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -829,6 +829,7 @@ void bt_shell_init(int argc, char **argv, const struct bt_shell_opt *opt)
 
 	data.argc = argc - optind;
 	data.argv = argv + optind;
+	optind = 0;
 	data.mode = (data.argc > 0);
 
 	if (data.mode)