[commands] Fix config command to accept zero arguments

pull/1/head
Michael Brown 2008-10-12 14:37:51 +01:00
parent 8a4ccebec9
commit 941b4c2adb
1 changed files with 1 additions and 1 deletions

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;