Commit fa948752 by Edward Thomson Committed by GitHub

Merge pull request #4277 from pks-t/pks/merge-coverity-fix

merge: fix potential free of uninitialized memory
parents 40294f38 4dc87e72
......@@ -1165,7 +1165,7 @@ static int merge_diff_mark_similarity_exact(
{
size_t i, j;
git_merge_diff *conflict_src, *conflict_tgt;
git_oidmap *ours_deletes_by_oid, *theirs_deletes_by_oid;
git_oidmap *ours_deletes_by_oid = NULL, *theirs_deletes_by_oid = NULL;
int error = 0;
if (!(ours_deletes_by_oid = git_oidmap_alloc()) ||
......
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