Browse Source

[commands] Fix config command to accept zero arguments

tags/v0.9.6
Michael Brown 16 years ago
parent
commit
941b4c2adb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/hci/commands/config_cmd.c

+ 1
- 1
src/hci/commands/config_cmd.c View File

@@ -16,7 +16,7 @@ static int config_exec ( int argc, char **argv ) {
16 16
 	}
17 17
 
18 18
 	settings_name = ( ( argc == 2 ) ? argv[1] : "" );
19
-	settings = find_settings ( argv[1] );
19
+	settings = find_settings ( settings_name );
20 20
 	if ( ! settings ) {
21 21
 		printf ( "No such scope \"%s\"\n", settings_name );
22 22
 		return 1;

Loading…
Cancel
Save