From 35d9646783e3f4cbcc03ea869f19e0227c0a2b31 Mon Sep 17 00:00:00 2001 From: "Daniel C. Sobral" Date: Wed, 1 Dec 1999 18:30:26 +0000 Subject: [PATCH] Add fairings. Do not depend on user actually supplying the arguments he is supposed to supply. --- sys/boot/common/module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index d2adeab03e70..63f1c9ff7391 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':