From: Michael Brown Date: Sun, 12 Oct 2008 13:37:51 +0000 (+0100) Subject: [commands] Fix config command to accept zero arguments X-Git-Tag: v0.9.6~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=941b4c2adb160096dbb97b0181103c7302293ab9;p=thirdparty%2Fipxe.git [commands] Fix config command to accept zero arguments --- diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c index 660c64232..87abb05a9 100644 --- a/src/hci/commands/config_cmd.c +++ b/src/hci/commands/config_cmd.c @@ -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;