...and one more forgotten NULL check.
[claws.git] / src / passwordstore.c
index cd56c1b0a4db2ca6bbce29ee12b87fbe2b149548..0564d473b0ea982944d2de8ae4788b21ecfb8a19 100644 (file)
@@ -369,7 +369,7 @@ static gint _write_to_file(FILE *fp)
                        continue; /* Just in case. */
 
                /* Do not save empty blocks. */
-               if (g_hash_table_size(block->entries) == 0)
+               if (block->entries == NULL || g_hash_table_size(block->entries) == 0)
                        continue;
 
                /* Prepare the section header string and write it out. */