diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2020-08-26 14:02:38 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2020-08-26 14:02:38 +0000 |
commit | b95807751a68a3d7d7d105f68d03465b8195ff44 (patch) | |
tree | 424af58150832d6bed42ed80b4965d12237d2020 /usr.sbin/efibootmgr/efibootmgr.c | |
parent | 74e2b24f2c369ffdff2f54fa9f96427cc45ef3a6 (diff) |
efibootmgr: wrong check for opts.order
opts.order && !(opts.order) does not really make sense.
Reported by: swildner
Notes
Notes:
svn path=/head/; revision=364818
Diffstat (limited to 'usr.sbin/efibootmgr/efibootmgr.c')
-rw-r--r-- | usr.sbin/efibootmgr/efibootmgr.c | 2 |
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) |