mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
Fix logic error for missing options in reader
This commit is contained in:
@@ -417,7 +417,7 @@ gvdb_table_get_value (GvdbTable *file,
|
|||||||
{
|
{
|
||||||
data = gvdb_table_dereference (file, &item->options, 8, &size);
|
data = gvdb_table_dereference (file, &item->options, 8, &size);
|
||||||
|
|
||||||
if (data != NULL || size > 0)
|
if (data != NULL && size > 0)
|
||||||
{
|
{
|
||||||
*options = g_variant_new_from_data (G_VARIANT_TYPE ("a{sv}"),
|
*options = g_variant_new_from_data (G_VARIANT_TYPE ("a{sv}"),
|
||||||
data, size, file->trusted,
|
data, size, file->trusted,
|
||||||
|
Reference in New Issue
Block a user