mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
Merge branch 'feature/gresource-static-validate-args' into 'main'
gio/gresource: validate args of g_static_resource_init Closes #3517 See merge request GNOME/glib!4372
This commit is contained in:
commit
ccee4c2342
@ -1529,6 +1529,10 @@ g_static_resource_init (GStaticResource *static_resource)
|
||||
{
|
||||
GStaticResource *next;
|
||||
|
||||
g_return_if_fail (static_resource != NULL);
|
||||
g_return_if_fail (static_resource->next == NULL);
|
||||
g_return_if_fail (static_resource != g_atomic_pointer_get (&lazy_register_resources));
|
||||
|
||||
do
|
||||
{
|
||||
next = g_atomic_pointer_get (&lazy_register_resources);
|
||||
|
Loading…
Reference in New Issue
Block a user