summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8419d2e)
raw | patch | inline | side by side (parent: 8419d2e)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Sep 2007 19:12:32 +0000 (12:12 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Sep 2007 19:12:32 +0000 (12:12 -0700) |
Code inspection by Linus found this.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c | patch | blob | history |
diff --git a/diff-lib.c b/diff-lib.c
index f5568c3b36338a203a42ce1e46109152ad4642bb..da5571302df6ed418874fd4d7423853a7de5b52c 100644 (file)
--- a/diff-lib.c
+++ b/diff-lib.c
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;
}