aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index 8c7ba82cb5a5..53bc417c4e07 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -1072,11 +1072,12 @@ int
main(int argc, char *argv[])
{
+ memset(&opts, 0, sizeof (bmgr_opts_t));
+ parse_args(argc, argv);
+
if (!efi_variables_supported())
errx(1, "efi variables not supported on this system. root? kldload efirt?");
- memset(&opts, 0, sizeof (bmgr_opts_t));
- parse_args(argc, argv);
read_vars();
if (opts.create)