summaryrefslogtreecommitdiff
path: root/src/tool_urlglob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_urlglob.c')
-rw-r--r--src/tool_urlglob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index 09d21b61e..08e5d094c 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -213,6 +213,9 @@ static CURLcode glob_range(URLGlob *glob, char **patternp,
else if(end_c != ']')
/* then this is wrong */
rc = 0;
+ else
+ /* end_c == ']' */
+ pattern += 4;
}
*posp += (pattern - *patternp);