1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

39031: Ensure variables in transpose-words are initialised

This commit is contained in:
Peter Stephenson 2016-08-12 12:56:34 +01:00
parent bedb61fd99
commit 04003e038a
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2016-08-12 Peter Stephenson <p.stephenson@samsung.com>
* 39031: Src/Zle/zle_word.c: Ensure variables are initialised in
transpose-words.
* 39029: Doc/Zsh/zle.yo: document previous change.
* Han Pingtian: 38983: Src/Zle/zle_word.c: make transpose-words

View file

@ -722,7 +722,7 @@ transposewords(UNUSED(char **args))
if (!p3)
return 1;
pt = p3;
p1 = p2 = pt = p3;
while (n--) {
for (p2 = pt; p2; ) {