diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_pxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index 4cbb2b1..abf0941 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -1648,7 +1648,7 @@ static int do_sysboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) is_pxe = false; - if (strstr(argv[1], "-p")) { + if (argc > 1 && strstr(argv[1], "-p")) { prompt = 1; argc--; argv++; |