mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 07:39:17 +02: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;
|
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
|
do
|
||||||
{
|
{
|
||||||
next = g_atomic_pointer_get (&lazy_register_resources);
|
next = g_atomic_pointer_get (&lazy_register_resources);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user