Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: initialize dparr.



zsh-3.1.5-pws-17 dumps core with following operation on Solaris7 and gcc-2.8.1.
# --enable-zsh-debug prevents core dump.

Z(2):akr@is27e1u11% Src/zsh  -f
is27e1u11% cat <<'End' > Completion/User/_tst
heredoc> #compdef tst
heredoc> l=(a b)
heredoc> compadd $l
heredoc> End
is27e1u11% fpath=($PWD/Completion/*(/))
is27e1u11% . Completion/Core/compinit 
is27e1u11% tst <TAB>a<TAB>zsh: bus error (core dumped)  Src/zsh -f
Z(2):akr@is27e1u11% 

--- Src/Zle/zle_tricky.c-	Wed May  5 10:23:20 1999
+++ Src/Zle/zle_tricky.c	Wed May  5 10:23:57 1999
@@ -3524,7 +3524,7 @@
 addmatches(Cadata dat, char **argv)
 {
     char *s, *ms, *lipre = NULL, *lisuf = NULL, *lpre = NULL, *lsuf = NULL;
-    char **aign = NULL, **dparr;
+    char **aign = NULL, **dparr = NULL;
     int lpl, lsl, pl, sl, bpl, bsl, llpl = 0, llsl = 0, nm = mnum;
     int oisalt = 0, isalt, isexact, doadd;
     Cline lc = NULL;

-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author