summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-18 21:47:53 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-18 21:47:53 +0000
commitbbebc857507f24c82cd5bb2f80305b74390b4611 (patch)
tree4c1a949017d7975cb3e61b246783369bb529d53d /src/mbyte.c
parentfe3ca8ddd9b85240387b6fa7934af3317e25b731 (diff)
downloadvim-git-bbebc857507f24c82cd5bb2f80305b74390b4611.tar.gz
updated for version 7.0109
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index ff165fa1d..a0063120b 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -701,6 +701,7 @@ codepage_invalid:
* where mblen() returns 0 for invalid character.
* Therefore, following condition includes 0.
*/
+ (void)mblen(NULL, 0); /* First reset the state. */
if (mblen(buf, (size_t)1) <= 0)
n = 2;
else