Commit e3c6a1bf by Brodie Rao

config: handle NULL pointers passed to git_config_iterator_free()

Signed-off-by: Brodie Rao <brodie@sf.io>
parent 9eb45fc5
......@@ -927,6 +927,9 @@ int git_config_next(git_config_entry **entry, git_config_iterator *iter)
void git_config_iterator_free(git_config_iterator *iter)
{
if (iter == NULL)
return;
iter->free(iter);
}
......
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