diff options
Diffstat (limited to 'sys/boot/common/module.c')
-rw-r--r-- | sys/boot/common/module.c | 4 |
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': |