Set empty block->entries to NULL in passwd_store_delete_block().
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 24 Mar 2016 20:40:39 +0000 (21:40 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 24 Mar 2016 20:40:39 +0000 (21:40 +0100)
src/passwordstore.c

index dcb9d52..d2394d8 100644 (file)
@@ -226,6 +226,7 @@ gboolean passwd_store_delete_block(PasswordBlockType block_type,
        }
 
        g_hash_table_destroy(block->entries);
+       block->entries = NULL;
        return TRUE;
 }