Parcourir la source

[commands] Fix config command to accept zero arguments

tags/v0.9.6
Michael Brown il y a 17 ans
Parent
révision
941b4c2adb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/hci/commands/config_cmd.c

+ 1
- 1
src/hci/commands/config_cmd.c Voir le fichier

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;

Chargement…
Annuler
Enregistrer