mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
tool_urlglob.c: partly reverse dc19789444
The loop in glob_next_url() needs to be done backwards to maintain the
logic. dc19789444
caused test 1235 to fail.
This commit is contained in:
parent
5590a3f179
commit
9b61060ffc
@ -495,9 +495,9 @@ int glob_next_url(char **globbed, URLGlob *glob)
|
|||||||
else {
|
else {
|
||||||
bool carry = TRUE;
|
bool carry = TRUE;
|
||||||
|
|
||||||
/* implement a counter over the index ranges of all patterns,
|
/* implement a counter over the index ranges of all patterns, starting
|
||||||
starting with the leftmost pattern */
|
with the rightmost pattern */
|
||||||
for(i = 0; carry && (i < glob->size); i++) {
|
for(i = glob->size - 1; carry && (i < glob->size); --i) {
|
||||||
carry = FALSE;
|
carry = FALSE;
|
||||||
pat = &glob->pattern[i];
|
pat = &glob->pattern[i];
|
||||||
switch (pat->type) {
|
switch (pat->type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user