[glib: 3/5] Fix is_valid() API
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/5] Fix is_valid() API
- Date: Mon, 4 Oct 2010 01:12:48 +0000 (UTC)
commit d63f199d921b2444e25bc9f39cc12a84ad9695b5
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Jul 18 21:43:18 2010 -0400
Fix is_valid() API
Actually dereference the pointer instead of just checking for NULL
gvdb-reader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gvdb-reader.c b/gvdb-reader.c
index 01ef756..3b77e67 100644
--- a/gvdb-reader.c
+++ b/gvdb-reader.c
@@ -548,7 +548,7 @@ gvdb_table_unref (GvdbTable *file)
gboolean
gvdb_table_is_valid (GvdbTable *table)
{
- return !!table->data;
+ return !!*table->data;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]