mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
gio/gresource: validate args of g_static_resource_init
Signed-off-by: Sebastian Geiger <sbastig@gmx.net>
This commit is contained in:
parent
a85cc64b4b
commit
ccf4403e39
@ -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