Commit d8289b9f by Carlos Martín Nieto

config: handle empty backends when iterating

parent d8488b98
...@@ -375,7 +375,12 @@ static int all_iter_next(git_config_entry **entry, git_config_iterator *_iter) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment