diff options
-rw-r--r-- | debian/patches/fix-segfault-in-compinit-get_cvdef | 17 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 18 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..ea00bf042 --- /dev/null +++ b/debian/patches/fix-segfault-in-compinit-get_cvdef @@ -0,0 +1,17 @@ +Description: Fixes segfault on "task <Tab><Tab>" +Bug-Zsh: http://www.zsh.org/mla/workers/2013/msg00772.html +Author: Axel Beckert <abe@debian.org> + +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); diff --git a/debian/patches/series b/debian/patches/series index 62ed3e52b..2ef5cb596 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ suppress_texinfo_warning_by_adding_item_arguments.patch texinfo_remove_leading_whitespace.patch vcs_info_guilt_support.patch replace-texi2html-with-makeinfo +fix-segfault-in-compinit-get_cvdef |