about summary refs log tree commit diff
path: root/Src/glob.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-24 05:45:16 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-24 05:45:16 +0000
commite2e912189359b20efc0b178fd913728e38502b3e (patch)
treefd7e5a3f3b739ef300f061d2de9f6fafa3a40f27 /Src/glob.c
parentfe8d375ca077fc8c1982fd8c907f2546b127d09a (diff)
downloadzsh-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.c2
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;