From 9c7a1109c842bb64297dd495752ff2a900a44a6f Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 25 Sep 2015 20:57:51 +0000 Subject: [PATCH] WARN_CREATE_GLOBAL: don't leak the arithmetic for loop's index variable. Found by code inspection; WARN_CREATE_GLOBAL missed this. --- highlighters/main/main-highlighter.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index da27158..3e8a967 100755 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -262,6 +262,7 @@ _zsh_highlight_main_highlighter_highlight_string() setopt localoptions noksharrays local i j k style local AA + integer c # Starting quote is at 1, so start parsing at offset 2 in the string. for (( i = 2 ; i < end_pos - start_pos ; i += 1 )) ; do (( j = i + start_pos - 1 ))