commit | 9bf13616521b10db3545031f7a07d140dbc7b137 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Nov 29 19:11:40 2008 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Nov 29 19:11:40 2008 +0000 |
tree | ddb2ba898b068e6896b83abe933c6c7f08c855c3 | |
parent | fe86f2d7cdb284f18543cac2e6cbbe11352c7f48 [diff] [blame] |
updated for version 7.2-056
diff --git a/src/spell.c b/src/spell.c index 4807fff..058f7d6 100644 --- a/src/spell.c +++ b/src/spell.c
@@ -8112,7 +8112,8 @@ 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); } }