mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
registrybackend: fix possible crash if cache_node is NULL
This commit is contained in:
parent
67f6ede3e5
commit
1b5b0eff9a
@ -673,10 +673,12 @@ static gboolean
|
||||
registry_cache_update_node (GNode *cache_node,
|
||||
RegistryValue registry_value)
|
||||
{
|
||||
RegistryCacheItem *cache_item = cache_node->data;
|
||||
RegistryCacheItem *cache_item;
|
||||
|
||||
g_return_val_if_fail (cache_node != NULL, FALSE);
|
||||
g_return_val_if_fail (cache_item != NULL, FALSE);
|
||||
g_return_val_if_fail (cache_node->data != NULL, FALSE);
|
||||
|
||||
cache_item = cache_node->data;
|
||||
|
||||
if (registry_value.type != cache_item->value.type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user