From 04003e038ae60502e4e1124acb372c75956174dc Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 12 Aug 2016 12:56:34 +0100 Subject: [PATCH] 39031: Ensure variables in transpose-words are initialised --- ChangeLog | 3 +++ Src/Zle/zle_word.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4a7449ca4..b1dea8da3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-08-12 Peter Stephenson + * 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 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; ) {