summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2002-02-13 16:24:35 +0000
committerTim Janik <timj@src.gnome.org>2002-02-13 16:24:35 +0000
commit241b6981e376da1ff5f9c4e70a9f751b72f7145f (patch)
tree2e03e718c1863e352f4cd9204e5e7f830fccc9a6 /gobject
parent713ce83c5374580b9760b0e6c5ff71fbccca3cbe (diff)
fixed a check for node not being NULL.
Wed Feb 13 17:22:37 2002 Tim Janik <timj@gtk.org> * gtype.c (g_type_value_table_peek): fixed a check for node not being NULL.
Diffstat (limited to 'gobject')
-rw-r--r--gobject/ChangeLog4
-rw-r--r--gobject/gtype.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gobject/ChangeLog b/gobject/ChangeLog
index b8a17711c..5d1f29a03 100644
--- a/gobject/ChangeLog
+++ b/gobject/ChangeLog
@@ -1,3 +1,7 @@
+Wed Feb 13 17:22:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtype.c (g_type_value_table_peek): fixed a check for node not being NULL.
+
Wed Feb 13 06:53:50 2002 Tim Janik <timj@gtk.org>
* gparam.c: remove extraneous redefinition of G_PARAM_SPEC_CLASS().
diff --git a/gobject/gtype.c b/gobject/gtype.c
index adafc2b40..103fd4ad1 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -2757,7 +2757,7 @@ g_type_value_table_peek (GType type)
* but we should only get called with referenced types anyway
*/
data = node ? node->data : NULL;
- if (node->mutatable_check_cache)
+ if (node && node->mutatable_check_cache)
return data->common.value_table;
G_READ_LOCK (&type_rw_lock);