Skip to content

Commit

Permalink
tool_urlglob.c: partly reverse dc19789
Browse files Browse the repository at this point in the history
The loop in glob_next_url() needs to be done backwards to maintain the
logic. dc19789 caused test 1235 to fail.
  • Loading branch information
bagder committed Dec 15, 2014
1 parent 5590a3f commit 9b61060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tool_urlglob.c
Expand Up @@ -495,9 +495,9 @@ int glob_next_url(char **globbed, URLGlob *glob)
else {
bool carry = TRUE;

/* implement a counter over the index ranges of all patterns,
starting with the leftmost pattern */
for(i = 0; carry && (i < glob->size); i++) {
/* implement a counter over the index ranges of all patterns, starting
with the rightmost pattern */
for(i = glob->size - 1; carry && (i < glob->size); --i) {
carry = FALSE;
pat = &glob->pattern[i];
switch (pat->type) {
Expand Down

0 comments on commit 9b61060

Please sign in to comment.