projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a0ed7e3
)
...and one more forgotten NULL check.
author
Andrej Kacian
<ticho@claws-mail.org>
Mon, 8 Oct 2018 11:31:31 +0000
(13:31 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Mon, 8 Oct 2018 11:31:31 +0000
(13:31 +0200)
src/passwordstore.c
patch
|
blob
|
history
diff --git
a/src/passwordstore.c
b/src/passwordstore.c
index cd56c1b0a4db2ca6bbce29ee12b87fbe2b149548..0564d473b0ea982944d2de8ae4788b21ecfb8a19 100644
(file)
--- 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. */
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. */
continue;
/* Prepare the section header string and write it out. */