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.
This commit is contained in:
Tim Janik 2002-02-13 16:24:35 +00:00 committed by Tim Janik
parent 713ce83c53
commit 241b6981e3
2 changed files with 5 additions and 1 deletions

View File

@ -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().

View File

@ -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);