summaryrefslogtreecommitdiff
path: root/Src/glob.c
diff options
context:
space:
mode:
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;