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:
parent
bedb61fd99
commit
04003e038a
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -722,7 +722,7 @@ transposewords(UNUSED(char **args))
|
|||
if (!p3)
|
||||
return 1;
|
||||
|
||||
pt = p3;
|
||||
p1 = p2 = pt = p3;
|
||||
|
||||
while (n--) {
|
||||
for (p2 = pt; p2; ) {
|
||||
|
|
Loading…
Reference in a new issue