diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-12-16 09:01:56 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-12-16 09:01:56 +0100 |
commit | ae56df82c155c9e9b6404ab87e69edcb55bd5a17 (patch) | |
tree | 6b30ce8f3bae1d8069d26b16e30be8cfa50b734d | |
parent | 088b9b2a97e51df39bd3ad0137fa0eb25002e68a (diff) |
glob_next_url: make the loop count upwards
As the former contruct apparently caused a compiler warning, mentioned
in d8efde07e556c.
-rw-r--r-- | src/tool_urlglob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c index 3128044ba..b6d5591ab 100644 --- a/src/tool_urlglob.c +++ b/src/tool_urlglob.c @@ -494,9 +494,9 @@ CURLcode glob_next_url(char **globbed, URLGlob *glob) /* 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) { + for(i = 0; carry && (i < glob->size); i++) { carry = FALSE; - pat = &glob->pattern[i]; + pat = &glob->pattern[glob->size - 1 - i]; switch (pat->type) { case UPTSet: if((pat->content.Set.elements) && |