diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-09-14 12:12:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-14 12:12:32 -0700 |
commit | b78281f7215c0236da6bd5c04ec5e500c83fd101 (patch) | |
tree | 4e6ecace35169295825931803c7fe987d4bd03e3 /diff-lib.c | |
parent | 8419d2ee9ba8b375186a5c1019df8dfbce610aba (diff) | |
download | git-b78281f7215c0236da6bd5c04ec5e500c83fd101.tar.gz |
diff --no-index: do not forget to run diff_setup_done()
Code inspection by Linus found this.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-lib.c')
-rw-r--r-- | diff-lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/diff-lib.c b/diff-lib.c index f5568c3b36..da5571302d 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -298,6 +298,8 @@ int setup_diff_no_index(struct rev_info *revs, revs->diffopt.nr_paths = 2; revs->diffopt.no_index = 1; revs->max_count = -2; + if (diff_setup_done(&revs->diffopt) < 0) + die("diff_setup_done failed"); return 0; } |