summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/common/module.c')
-rw-r--r--sys/boot/common/module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index d2adeab..63f1c9f 100644
--- a/sys/boot/common/module.c
+++ b/sys/boot/common/module.c
@@ -74,6 +74,10 @@ command_load(int argc, char *argv[])
optind = 1;
optreset = 1;
typestr = NULL;
+ if (argc == 1) {
+ command_errmsg = "no filename specified";
+ return(CMD_ERROR);
+ }
while ((ch = getopt(argc, argv, "t:")) != -1) {
switch(ch) {
case 't':
OpenPOWER on IntegriCloud