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, 2 insertions, 0 deletions
diff --git a/Src/glob.c b/Src/glob.c
index af5d0821c..c9ec97e0e 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -2194,6 +2194,8 @@ bracechardots(char *str, convchar_t *c1p, convchar_t *c2p)
pnext[0] != '.' || pnext[1] != '.')
return 0;
pnext += 2;
+ if (!*pnext)
+ return 0;
if (itok(*pnext)) {
if (*pnext == Inbrace)
return 0;