summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorJohn Haley <johnh@axosoft.com>2016-04-26 08:09:04 -0700
committerJohn Haley <johnh@axosoft.com>2016-05-03 13:32:32 -0700
commit225cb8809ee5ec830fcfcca40efd62d1eba8241d (patch)
tree5cff9f639ce0f28d4b8271afd08b4f40daa78df7 /tests/diff/diffiter.c
parent4d384d6bbe3efc72fb212a2c5c71c8064a2cee54 (diff)
downloadlibgit2-225cb8809ee5ec830fcfcca40efd62d1eba8241d.tar.gz
Fix `git_commit_create` for an initial commit
When calling `git_commit_create` with an empty array of `parents` and `parent_count == 0` the call will segfault at https://github.com/libgit2/libgit2/blob/master/src/commit.c#L107 when it's trying to compare `current_id` to a null parent oid. This just puts in a check to stop that segfault.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions