mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 11:19:47 +00:00
config: handle empty backends when iterating
This commit is contained in:
parent
d8488b981c
commit
d8289b9fb4
@ -375,7 +375,12 @@ static int all_iter_next(git_config_entry **entry, git_config_iterator *_iter)
|
|||||||
if (error < 0)
|
if (error < 0)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
return iter->current->next(entry, iter->current);
|
error = iter->current->next(entry, iter->current);
|
||||||
|
/* If this backend is empty, then keep going */
|
||||||
|
if (error == GIT_ITEROVER)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
return error;
|
||||||
|
|
||||||
} while(1);
|
} while(1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user