mirror of
https://github.com/curl/curl.git
synced 2025-09-23 20:46:48 +03:00
glob_next_url: make the loop count upwards
As the former contruct apparently caused a compiler warning, mentioned
in d8efde07e5
.
This commit is contained in:
parent
088b9b2a97
commit
ae56df82c1
|
@ -494,9 +494,9 @@ CURLcode glob_next_url(char **globbed, URLGlob *glob)
|
||||||
|
|
||||||
/* implement a counter over the index ranges of all patterns, starting
|
/* implement a counter over the index ranges of all patterns, starting
|
||||||
with the rightmost pattern */
|
with the rightmost pattern */
|
||||||
for(i = glob->size - 1; carry && (i < glob->size); --i) {
|
for(i = 0; carry && (i < glob->size); i++) {
|
||||||
carry = FALSE;
|
carry = FALSE;
|
||||||
pat = &glob->pattern[i];
|
pat = &glob->pattern[glob->size - 1 - i];
|
||||||
switch (pat->type) {
|
switch (pat->type) {
|
||||||
case UPTSet:
|
case UPTSet:
|
||||||
if((pat->content.Set.elements) &&
|
if((pat->content.Set.elements) &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user