summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-10-12 15:37:51 +0200
committerMichael Brown2008-10-12 16:11:10 +0200
commit941b4c2adb160096dbb97b0181103c7302293ab9 (patch)
tree629697b4a29dcb6f990b3aa8dea0fbe3f5e75538
parent[pci] Formalise the PCI I/O API (diff)
downloadipxe-941b4c2adb160096dbb97b0181103c7302293ab9.tar.gz
ipxe-941b4c2adb160096dbb97b0181103c7302293ab9.tar.xz
ipxe-941b4c2adb160096dbb97b0181103c7302293ab9.zip
[commands] Fix config command to accept zero arguments
-rw-r--r--src/hci/commands/config_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c
index 660c6423..87abb05a 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;