summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-09 19:45:27 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-09 19:45:27 (GMT)
commit72ee96c0f1861fcdb9eaf39e78d86888437a27a9 (patch)
tree4f670c1132c867b7887a070dc450e63ace2fd03e /revision.c
parent1d17c25c38a6b98d20b7bbe789b45996fd84d672 (diff)
downloadgit-72ee96c0f1861fcdb9eaf39e78d86888437a27a9.zip
git-72ee96c0f1861fcdb9eaf39e78d86888437a27a9.tar.gz
git-72ee96c0f1861fcdb9eaf39e78d86888437a27a9.tar.bz2
check return value from diff_setup_done()
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index a58257a..5a91d06 100644
--- a/revision.c
+++ b/revision.c
@@ -936,7 +936,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
revs->diffopt.output_format = DIFF_FORMAT_PATCH;
}
revs->diffopt.abbrev = revs->abbrev;
- diff_setup_done(&revs->diffopt);
+ if (diff_setup_done(&revs->diffopt) < 0)
+ die("diff_setup_done failed");
return left;
}