Browse Source

[commands] Fix config command to accept zero arguments

tags/v0.9.6
Michael Brown 15 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
 	}
16
 	}
17
 
17
 
18
 	settings_name = ( ( argc == 2 ) ? argv[1] : "" );
18
 	settings_name = ( ( argc == 2 ) ? argv[1] : "" );
19
-	settings = find_settings ( argv[1] );
19
+	settings = find_settings ( settings_name );
20
 	if ( ! settings ) {
20
 	if ( ! settings ) {
21
 		printf ( "No such scope \"%s\"\n", settings_name );
21
 		printf ( "No such scope \"%s\"\n", settings_name );
22
 		return 1;
22
 		return 1;

Loading…
Cancel
Save