summaryrefslogtreecommitdiffstats
path: root/src/spellfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellfile.c')
-rw-r--r--src/spellfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellfile.c b/src/spellfile.c
index 920e05194c..ca25ff691a 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -4600,7 +4600,7 @@ get_wordnode(spellinfo_T *spin)
{
n = spin->si_first_free;
spin->si_first_free = n->wn_child;
- vim_memset(n, 0, sizeof(wordnode_T));
+ CLEAR_POINTER(n);
--spin->si_free_count;
}
#ifdef SPELL_PRINTTREE
@@ -5886,7 +5886,7 @@ mkspell(
int error = FALSE;
spellinfo_T spin;
- vim_memset(&spin, 0, sizeof(spin));
+ CLEAR_FIELD(spin);
spin.si_verbose = !added_word;
spin.si_ascii = ascii;
spin.si_followup = TRUE;