[Commits] [SCM] claws branch, master, updated. 3.17.0-106-g595de51

ticho at claws-mail.org ticho at claws-mail.org
Mon Oct 8 13:31:55 CEST 2018


The branch, master has been updated
       via  595de51b0f44e283734b08ed785c75ba879983da (commit)
      from  a0ed7e3b9fa6312b18accef0c0ab5a084e3c2d8d (commit)

Summary of changes:
 src/passwordstore.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 595de51b0f44e283734b08ed785c75ba879983da
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Oct 8 13:31:31 2018 +0200

    ...and one more forgotten NULL check.

diff --git a/src/passwordstore.c b/src/passwordstore.c
index cd56c1b..0564d47 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. */

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list