[glib: 1/5] Fix logic error for missing options in reader
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/5] Fix logic error for missing options in reader
- Date: Wed, 21 Apr 2010 00:14:04 +0000 (UTC)
commit dc2b43b3e7bebe5c1fb9dedcb8630c4d45a99266
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Apr 19 10:17:31 2010 -0400
Fix logic error for missing options in reader
gvdb-reader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gvdb-reader.c b/gvdb-reader.c
index 65bef5e..2bec7dc 100644
--- a/gvdb-reader.c
+++ b/gvdb-reader.c
@@ -417,7 +417,7 @@ gvdb_table_get_value (GvdbTable *file,
{
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}"),
data, size, file->trusted,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]