From 7bf294f2b8329673ffd0ee55fa2cca872e5448df Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 31 May 2000 08:56:23 +0000 Subject: Wayne: pattern.c unitialised var Zero-length arrays now possible with $array[1,0] --- Src/Zle/complete.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/complete.c') diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index c87aac596..2b73ea33e 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -1033,8 +1033,8 @@ set_compstate(Param pm, HashTable ht) for (cp = compkparams, pp = compkpms; cp->name; cp++, pp++) if (!strcmp(hn->nam, cp->name)) { - v.isarr = v.inv = v.a = 0; - v.b = -1; + v.isarr = v.inv = v.start = 0; + v.len = -1; v.arr = NULL; v.pm = (Param) hn; if (cp->type == PM_INTEGER) -- cgit 1.4.1