Commit c7469503 by Etienne Samson Committed by Edward Thomson

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

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