2
0
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:
Michael Brown 2008-10-12 14:37:51 +01:00
parent 8a4ccebec9
commit 941b4c2adb

View File

@ -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;