The loop in glob_next_url() needs to be done backwards to maintain the
logic.
dc19789444 caused test 1235 to fail.
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) {