gio/gresource: validate args of g_static_resource_init

This commit is contained in:
Sebastian Geiger 2024-10-28 08:53:12 +01:00
parent 0828714bd4
commit 19cc4e9837

View File

@ -1529,6 +1529,9 @@ g_static_resource_init (GStaticResource *static_resource)
{
GStaticResource *next;
g_return_if_fail (static_resource != NULL);
g_return_if_fail (static_resource->next == NULL);
do
{
next = g_atomic_pointer_get (&lazy_register_resources);