commit 595de51b0f44e283734b08ed785c75ba879983da
parent a0ed7e3b9fa6312b18accef0c0ab5a084e3c2d8d
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Mon, 8 Oct 2018 13:31:31 +0200
...and one more forgotten NULL check.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/passwordstore.c b/src/passwordstore.c
@@ -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. */