Fix is_valid() API
authorRyan Lortie <desrt@desrt.ca>
Mon, 19 Jul 2010 01:43:18 +0000 (21:43 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 19 Jul 2010 01:43:18 +0000 (21:43 -0400)
Actually dereference the pointer instead of just checking for NULL

gvdb-reader.c

index 01ef756..3b77e67 100644 (file)
@@ -548,7 +548,7 @@ gvdb_table_unref (GvdbTable *file)
 gboolean
 gvdb_table_is_valid (GvdbTable *table)
 {
-  return !!table->data;
+  return !!*table->data;
 }
 
 void