Skip to content

Commit

Permalink
Merge pull request sorin-ionescu#128 from knu/patch-1
Browse files Browse the repository at this point in the history
Do not leak a variable: cdpath_dir.
  • Loading branch information
nicoulaj committed Nov 19, 2013
2 parents dbd27cb + 0fc6b07 commit 63a720a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions highlighters/main/main-highlighter.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ _zsh_highlight_main_highlighter_check_path()
[[ -z $expanded_path ]] && return 1
[[ -e $expanded_path ]] && return 0
# Search the path in CDPATH
local cdpath_dir
for cdpath_dir in $cdpath ; do
[[ -e "$cdpath_dir/$expanded_path" ]] && return 0
done
Expand Down

0 comments on commit 63a720a

Please sign in to comment.