mirror of https://github.com/ipxe/ipxe.git
[commands] Fix config command to accept zero arguments
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