...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 cd56c1b..0564d47 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. */