Diff between 0ecc909424ed0e68928187bac0b0da75bc06fd93 and d2c3df7b052c1b6d05fc5c753c86c19fd2ffa010

Changed Files

File Additions Deletions Status
tools/btmgmt.c +1 -1 modified

Full Patch

diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 7cf82e2..3ff0724 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -3392,7 +3392,7 @@ static char *cmd_generator(const char *text, int state)
 			return strdup(cmd);
 	}
 
-	while (j++ < NELEM(interactive_cmd)) {
+	while (j < NELEM(interactive_cmd)) {
 		cmd = interactive_cmd[j++].cmd;
 
 		if (!strncmp(cmd, text, len))