Skip to content

Commit

Permalink
trivial: fix error handling for non UEFI case (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Limonciello committed Jul 11, 2019
1 parent e772645 commit 6fc6428
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/uefi/fu-plugin-uefi.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,10 @@ fu_plugin_coldplug (FuPlugin *plugin, GError **error)
g_autoptr(GPtrArray) entries = NULL;

/* are the EFI dirs set up so we can update each device */
if (!fu_uefi_vars_supported (error))
if (!fu_uefi_vars_supported (&error_local)) {
g_warning ("%s", error_local->message);
return fu_plugin_uefi_create_dummy (plugin, error);
}

/* get the directory of ESRT entries */
sysfsfwdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);
Expand Down

0 comments on commit 6fc6428

Please sign in to comment.