about summary refs log tree commit diff
path: root/Src/Zle/zle_word.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-08-12 12:56:34 +0100
committerPeter Stephenson <pws@zsh.org>2016-08-12 12:56:34 +0100
commit04003e038ae60502e4e1124acb372c75956174dc (patch)
treecb7c3812e7d304944c95860bb8ca2e6ed0985b3e /Src/Zle/zle_word.c
parentbedb61fd999b87948d30987302362b3c07302132 (diff)
downloadzsh-04003e038ae60502e4e1124acb372c75956174dc.tar.gz
zsh-04003e038ae60502e4e1124acb372c75956174dc.tar.xz
zsh-04003e038ae60502e4e1124acb372c75956174dc.zip
39031: Ensure variables in transpose-words are initialised
Diffstat (limited to 'Src/Zle/zle_word.c')
-rw-r--r--Src/Zle/zle_word.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_word.c b/Src/Zle/zle_word.c
index 2a151710a..e4a878eab 100644
--- a/Src/Zle/zle_word.c
+++ b/Src/Zle/zle_word.c
@@ -722,7 +722,7 @@ transposewords(UNUSED(char **args))
     if (!p3)
 	return 1;
 
-    pt = p3;
+    p1 = p2 = pt = p3;
 
     while (n--) {
 	for (p2 = pt; p2; ) {