aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-05-24 10:19:13 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-05-24 10:19:13 +0300
commita3494a52d7c01fbc28e7ab12b7af347860aa62a7 (patch)
tree3ddd49ed32dce757e2bf026c145cfd1b3d50407d
parentf774df6c76c3cf98d7740a00ef63d36e5a5cc0a7 (diff)
don't leak 'token' local variable in parser (#1407)
-rw-r--r--internal/parser.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/parser.zsh b/internal/parser.zsh
index dc2082de..6c16adcd 100644
--- a/internal/parser.zsh
+++ b/internal/parser.zsh
@@ -152,7 +152,7 @@ function _p9k_parse_buffer() {
local -r var="\$$id|\${$id}|\"\$$id\"|\"\${$id}\""
local -i e ic c=${2:-'1 << 62'}
- local skip n s r state cmd prev
+ local skip n s r state token cmd prev
local -a aln alp alf v
if [[ -o interactive_comments ]]; then