diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-10-24 01:26:48 +0200 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2019-01-04 13:33:55 +0100 |
commit | 0a8745f25c0450c1fc5379d1e8fc20f796f5eb57 (patch) | |
tree | 03ef59e407bd76aecac71b310d6be39320a8fd3f | |
parent | 9c23552c3806212305fe1d48f511935f9fa75bf9 (diff) | |
download | libgit2-0a8745f25c0450c1fc5379d1e8fc20f796f5eb57.tar.gz |
diff: assert that we're passed a valid git_diff object
CID 1386176, 1386177, 1388219
-rw-r--r-- | src/diff_tform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff_tform.c b/src/diff_tform.c index 8c5abbf47..3a8924d0b 100644 --- a/src/diff_tform.c +++ b/src/diff_tform.c @@ -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; |