]> Pileus Git - ~andy/gtk/commitdiff
update_type_references: Deal with type_refs_ht being NULL
authorMatthias Clasen <mclasen@redhat.com>
Tue, 18 Dec 2012 03:45:08 +0000 (22:45 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 18 Dec 2012 03:45:08 +0000 (22:45 -0500)
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.

gtk/gtkcssselector.c

index fcf0ac6cdfe32f793eea5bf34f77652632f0c499..7956a973184fbb6c5d41be3413c317394754a041 100644 (file)
@@ -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))