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.
This commit is contained in:
Matthias Clasen 2012-12-17 22:45:08 -05:00
parent e9aeb2fbca
commit df1d331713

View 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))