Skip to content

Commit

Permalink
Work around a static-analyzer false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion authored and weblate committed Apr 24, 2024
1 parent 50b80ea commit 6ca15a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/as-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6ca15a0

Please sign in to comment.