[gtk+] update_type_references: Deal with type_refs_ht being NULL



commit df1d3317132c49b5748a869e4658905b5d0df22e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 17 22:45:08 2012 -0500

    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.

 gtk/gtkcssselector.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index fcf0ac6..7956a97 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))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]