diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-12-17 22:45:08 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-12-17 22:45:08 -0500 |
commit | df1d3317132c49b5748a869e4658905b5d0df22e (patch) | |
tree | 894869b5a7d7777acb20c9e211500b861044eaae /gtk/gtkcssselector.c | |
parent | e9aeb2fbcaf5d3485ff73b321772437d0134042a (diff) | |
download | gtk+-df1d3317132c49b5748a869e4658905b5d0df22e.tar.gz |
update_type_references: Deal with type_refs_ht being NULL
This can apparently happen, and it was breaking make check
on my system, by causing it to throw a critical out of
g_hash_table_iter_init from here.
Diffstat (limited to 'gtk/gtkcssselector.c')
-rw-r--r-- | gtk/gtkcssselector.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c index fcf0ac6cdf..7956a97318 100644 --- a/gtk/gtkcssselector.c +++ b/gtk/gtkcssselector.c @@ -728,6 +728,9 @@ update_type_references (void) type_refs_last_serial = serial; + if (type_refs_ht == NULL) + return; + g_hash_table_iter_init (&iter, type_refs_ht); while (g_hash_table_iter_next (&iter, NULL, &value)) |