diff options
author | dcs <dcs@FreeBSD.org> | 1999-12-01 18:30:26 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 1999-12-01 18:30:26 +0000 |
commit | 0636e4261d54b2b0f427976e6858d7674d6dba3e (patch) | |
tree | 6e40243eb92db0f1fa7cb4578ffed816997286f3 /sys/boot | |
parent | 2df4884127a75decde9aa8359f08f0ef90feeb7a (diff) | |
download | FreeBSD-src-0636e4261d54b2b0f427976e6858d7674d6dba3e.zip FreeBSD-src-0636e4261d54b2b0f427976e6858d7674d6dba3e.tar.gz |
Add fairings. Do not depend on user actually supplying the arguments
he is supposed to supply.
Diffstat (limited to 'sys/boot')
-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': |