commit b63551d65c05683134e9591fa3863761809c0077
parent 69ce23d6739e4713fbb8b86d87e8a26f99ff7fd7
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. */