Diff between 4f7162071f885714f8a3aaedc50333576e2dd8f5 and 302a03f1c25680e3309f236c4cb60106b102529c

Changed Files

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

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 9cd8d25..10f2626 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -957,6 +957,8 @@ void bt_shell_init(int argc, char **argv, const struct bt_shell_opt *opt)
 
 			*opt->optarg[index - offset] = optarg;
 		}
+
+		index = -1;
 	}
 
 	data.argc = argc - optind;