Diff between 68864d1aa818aca00d67f7a4d6078344483e9509 and f00d5546c9e989dd68ce0de0190cd0e043b0f1f5

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 9b7f851..436c2bb 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -51,8 +51,8 @@ int main(int argc, char *argv[])
 		return EXIT_FAILURE;
 	}
 
-	bt_shell_attach(fileno(stdin));
 	mgmt_set_index(index_option);
+	bt_shell_attach(fileno(stdin));
 	status = bt_shell_run();
 
 	mgmt_remove_submenu();