From: Andrej Kacian Date: Mon, 8 Oct 2018 11:31:31 +0000 (+0200) Subject: ...and one more forgotten NULL check. X-Git-Tag: 3.17.2~100 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=595de51b0f44e283734b08ed785c75ba879983da ...and one more forgotten NULL check. --- diff --git a/src/passwordstore.c b/src/passwordstore.c index cd56c1b0a..0564d473b 100644 --- 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. */