diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-04-24 05:45:16 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-04-24 05:45:16 +0000 |
commit | e2e912189359b20efc0b178fd913728e38502b3e (patch) | |
tree | fd7e5a3f3b739ef300f061d2de9f6fafa3a40f27 /Src/glob.c | |
parent | fe8d375ca077fc8c1982fd8c907f2546b127d09a (diff) | |
download | zsh-e2e912189359b20efc0b178fd913728e38502b3e.tar.gz zsh-e2e912189359b20efc0b178fd913728e38502b3e.tar.xz zsh-e2e912189359b20efc0b178fd913728e38502b3e.zip |
Subscripting optimization and error checking.
Diffstat (limited to 'Src/glob.c')
-rw-r--r-- | Src/glob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/glob.c b/Src/glob.c index 90b291459..5be79329b 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -1344,7 +1344,7 @@ glob(LinkList list, LinkNode np, int nountok) v.pm = NULL; v.end = -1; v.inv = 0; - if (getindex(&s, &v) || s == os) { + if (getindex(&s, &v, 0) || s == os) { zerr("invalid subscript", NULL, 0); restore_globstate(saved); return; |