mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 01:16:17 +01:00
gio/gresource: validate args of g_static_resource_init
This commit is contained in:
parent
0828714bd4
commit
19cc4e9837
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user