summaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2020-08-26 14:02:38 +0000
committerToomas Soome <tsoome@FreeBSD.org>2020-08-26 14:02:38 +0000
commitb95807751a68a3d7d7d105f68d03465b8195ff44 (patch)
tree424af58150832d6bed42ed80b4965d12237d2020 /usr.sbin/efibootmgr
parent74e2b24f2c369ffdff2f54fa9f96427cc45ef3a6 (diff)
downloadsrc-test2-b95807751a68a3d7d7d105f68d03465b8195ff44.tar.gz
src-test2-b95807751a68a3d7d7d105f68d03465b8195ff44.zip
Notes
Diffstat (limited to 'usr.sbin/efibootmgr')
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index b0d5bfa9dbb9..2e2ebed78f90 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -295,7 +295,7 @@ parse_args(int argc, char *argv[])
return;
}
- if (opts.order && !(opts.order))
+ if (opts.order != NULL && *opts.order == '\0')
errx(1, "%s", ORDER_USAGE);
if ((opts.set_inactive || opts.set_active) && !opts.has_bootnum)