From 6e68c08b3a8b822f40a9806ccb27a55544d55f59 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Wed, 24 Apr 2024 19:36:48 +0200 Subject: [PATCH] Work around a static-analyzer false-positive --- src/as-utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/as-utils.c b/src/as-utils.c index 218f1774..3966c67e 100644 --- a/src/as-utils.c +++ b/src/as-utils.c @@ -1272,8 +1272,10 @@ as_utils_ensure_resources (void) g_mutex_lock (&mutex); resource = as_get_resource (); - if (resource == NULL) - g_error ("Failed to load internal resources: as_get_resource() returned NULL!"); + if (resource == NULL) { + g_critical ("Failed to load internal resources: as_get_resource() returned NULL!"); + abort (); + } g_mutex_unlock (&mutex); }