about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-21 09:06:05 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-21 09:06:05 +0000
commit475fc987820db6fba2d76a2726f8c64955051da3 (patch)
treea6ee4582065ad0b90b29bc404c39d4ea45776696 /Src
parent3cf29e75139ec3753868ef8d064d2d5729371b6f (diff)
downloadzsh-475fc987820db6fba2d76a2726f8c64955051da3.tar.gz
zsh-475fc987820db6fba2d76a2726f8c64955051da3.tar.xz
zsh-475fc987820db6fba2d76a2726f8c64955051da3.zip
unposted: missing assignment in new backwardmetafiedchar()
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_move.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/zle_move.c b/Src/Zle/zle_move.c
index 5e4ebed5b..2db703051 100644
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -174,7 +174,7 @@ backwardmetafiedchar(char *start, char *endptr, convchar_t *retchr)
 #ifdef MULTIBYTE_SUPPORT
     int charlen = 0;
     char *last = NULL, *bufptr, *ptr = endptr;
-    convchar_t lastc;
+    convchar_t lastc = (convchar_t)0; /* not used, silence compiler */
     mbstate_t mbs;
     size_t ret;
     wchar_t wc;
@@ -247,11 +247,12 @@ backwardmetafiedchar(char *start, char *endptr, convchar_t *retchr)
 		/* This is the first character, so just return it. */
 		if (retchr)
 		    *retchr = wc;
-		return ptr;    
+		return ptr;
 	    }
 	    if (!last) {
 		/* still looking for the character immediately before ptr */
 		last = ptr;
+		lastc = wc;
 	    }
 	    /* searching for base character of combining character */
 	    charlen = 0;