trivial: Fix a critical warning when checking component requirements

This commit is contained in:
Richard Hughes 2018-02-23 15:26:15 +00:00
parent efc5abe74e
commit 34e48634af

View File

@ -2513,7 +2513,7 @@ fu_engine_filter_apps_by_requirements (FuEngine *self, GPtrArray *apps,
g_autoptr(GError) error_local = NULL;
AsApp *app_tmp = AS_APP (g_ptr_array_index (apps, i));
if (!fu_engine_check_requirements (self, app_tmp, device, &error_local)) {
if (error_all != NULL) {
if (error_all == NULL) {
error_all = g_steal_pointer (&error_local);
continue;
}