Commit 9b61060f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

tool_urlglob.c: partly reverse dc197894

The loop in glob_next_url() needs to be done backwards to maintain the
logic. dc197894 caused test 1235 to fail.
parent 5590a3f1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {