From 34e48634af6c39b10e8d6dec989cb083da38c194 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 23 Feb 2018 15:26:15 +0000 Subject: [PATCH] trivial: Fix a critical warning when checking component requirements --- src/fu-engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index 549b6b6ae..3bf4c6c39 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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; }