mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[commands] Fix config command to accept zero arguments
This commit is contained in:
parent
8a4ccebec9
commit
941b4c2adb
@ -16,7 +16,7 @@ static int config_exec ( int argc, char **argv ) {
|
||||
}
|
||||
|
||||
settings_name = ( ( argc == 2 ) ? argv[1] : "" );
|
||||
settings = find_settings ( argv[1] );
|
||||
settings = find_settings ( settings_name );
|
||||
if ( ! settings ) {
|
||||
printf ( "No such scope \"%s\"\n", settings_name );
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user