http://git.etherboot.org
/
people
/
mcb30
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a4cceb
)
[commands] Fix config command to accept zero arguments
author
Michael Brown
<mcb30@etherboot.org>
Sun, 12 Oct 2008 13:37:51 +0000
(14:37 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Sun, 12 Oct 2008 14:11:10 +0000
(15:11 +0100)
src/hci/commands/config_cmd.c
patch
|
blob
|
history
diff --git
a/src/hci/commands/config_cmd.c
b/src/hci/commands/config_cmd.c
index
660c642
..
87abb05
100644
(file)
--- 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_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;
if ( ! settings ) {
printf ( "No such scope \"%s\"\n", settings_name );
return 1;