...and one more forgotten NULL check.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 8 Oct 2018 11:31:31 +0000 (13:31 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 8 Oct 2018 11:31:31 +0000 (13:31 +0200)
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. */