diff options
Diffstat (limited to 'debian/patches/fix-segfault-in-compinit-get_cvdef')
-rw-r--r-- | debian/patches/fix-segfault-in-compinit-get_cvdef | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/fix-segfault-in-compinit-get_cvdef b/debian/patches/fix-segfault-in-compinit-get_cvdef new file mode 100644 index 000000000..a43ea5be7 --- /dev/null +++ b/debian/patches/fix-segfault-in-compinit-get_cvdef @@ -0,0 +1,19 @@ +Description: Fixes segfault on "task <Tab><Tab>" +Bug: http://www.zsh.org/mla/workers/2013/msg00772.html +Forwarded: http://www.zsh.org/mla/workers/2013/msg00790.html +Author: Axel Beckert <abe@debian.org> +Applied-Upstream: http://sourceforge.net/p/zsh/code/ci/844e569b632fc032576edc039f793be47fde724e/ + +Index: zsh/Src/Zle/computil.c +=================================================================== +--- zsh.orig/Src/Zle/computil.c 2013-09-18 23:09:08.000000000 +0200 ++++ zsh/Src/Zle/computil.c 2013-09-18 23:28:55.000000000 +0200 +@@ -2992,7 +2992,7 @@ + return *p; + } else if (!min || !*p || (*p)->lastt < (*min)->lastt) + min = p; +- if (i) ++ if (i > 0) + min = p; + if ((new = parse_cvdef(nam, args))) { + freecvdef(*min); |