From 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:20:19 +0000 Subject: zsh-3.1.5-pws-12 --- Src/Zle/compctl.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Src/Zle/compctl.c') diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index b5c8e4b3f..df38dcc96 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -183,7 +183,7 @@ print_gmatcher(int ac) static Cmatcher parse_cmatcher(char *name, char *s) { - Cmatcher ret = NULL, r, n; + Cmatcher ret = NULL, r = NULL, n; Cpattern line, word, left, right; int fl, ll, wl, lal, ral, err; @@ -276,8 +276,10 @@ parse_cmatcher(char *name, char *s) n->right = right; n->ralen = ral; - if (ret) r->next = n; - else ret = n; + if (ret) + r->next = n; + else + ret = n; r = n; } @@ -290,7 +292,7 @@ parse_cmatcher(char *name, char *s) static Cpattern parse_pattern(char *name, char **sp, int *lp, char e, int *err) { - Cpattern ret = NULL, r, n; + Cpattern ret = NULL, r = NULL, n; unsigned char *s = (unsigned char *) *sp; int l = 0; @@ -1707,6 +1709,7 @@ bin_compadd(char *name, char **argv, char *ops, int func) } for (p = *argv + 1; *p; p++) { sp = NULL; + e = NULL; dm = 0; switch (*p) { case 'q': @@ -1864,6 +1867,7 @@ static struct compparam { { "quoting", PM_SCALAR, VAR(compquoting) }, { "restore", PM_SCALAR, VAR(comprestore) }, { "list", PM_SCALAR, VAR(complist) }, + { "force_list", PM_SCALAR, VAR(compforcelist) }, { "insert", PM_SCALAR, VAR(compinsert) }, { "exact", PM_SCALAR, VAR(compexact) }, { "exact_string", PM_SCALAR, VAR(compexactstr) }, @@ -2228,7 +2232,7 @@ cond_range(char **a, int id) if (comp_check()) { char *s, **p; int i, l = arrlen(compwords), t = 0, b = 0, e = l - 1; - Comp c; + Comp c = NULL; i = compcurrent - 1; if (i < 0 || i >= l) -- cgit 1.4.1