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 dcb9d523fc223e3260a1d91e1df3fec738d84248..d2394d8f32166879e0a77d5274e0c10ebe71b349 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;
 }