Skip to content

Commit

Permalink
diff --no-index: do not forget to run diff_setup_done()
Browse files Browse the repository at this point in the history
Code inspection by Linus found this.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 14, 2007
1 parent 8419d2e commit b78281f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diff-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b78281f

Please sign in to comment.