summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c
index 4807fff9..058f7d68 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -8112,7 +8112,8 @@ write_vim_spell(spin, fname)
p = rr == 1 ? ftp->ft_from : ftp->ft_to;
l = (int)STRLEN(p);
putc(l, fd);
- fwv &= fwrite(p, l, (size_t)1, fd);
+ if (l > 0)
+ fwv &= fwrite(p, l, (size_t)1, fd);
}
}