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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index 3bcc3e4..343ca8d 100644
--- a/sys/boot/common/module.c
+++ b/sys/boot/common/module.c
@@ -100,7 +100,7 @@ command_load(int argc, char *argv[])
* Request to load a raw file?
*/
if (dofile) {
- if ((typestr == NULL) || (*typestr == 0)) {
+ if (argc != 2 || (typestr == NULL) || (*typestr == 0)) {
command_errmsg = "invalid load type";
return(CMD_ERROR);
}
OpenPOWER on IntegriCloud