diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/urlglob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlglob.c b/src/urlglob.c index 4dbd2ba2c..97b73f28a 100644 --- a/src/urlglob.c +++ b/src/urlglob.c @@ -214,7 +214,7 @@ static GlobCode glob_range(URLGlob *glob, char *pattern, rc = sscanf(pattern, "%d-%d%c%d%c", &min_n, &max_n, &sep, &step, &sep2); - if ((rc < 2) || (min_n >= max_n)) { + if ((rc < 2) || (min_n > max_n)) { /* the pattern is not well-formed */ snprintf(glob->errormsg, sizeof(glob->errormsg), "error: bad range specification after pos %d\n", pos); |