Commit 0a8745f2 by Etienne Samson

diff: assert that we're passed a valid git_diff object

CID 1386176, 1386177, 1388219
parent 9c23552c
......@@ -816,6 +816,8 @@ int git_diff_find_similar(
diff_find_match *best_match;
git_diff_file swap;
assert(diff);
if ((error = normalize_find_opts(diff, &opts, given_opts)) < 0)
return error;
......
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