summaryrefslogtreecommitdiff
path: root/diff-lib.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-02-25 23:34:31 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-25 14:42:23 -0800
commit646b3299613f0dd947557bc965660986d024322b (patch)
tree99a7373f03e696bb1482fbf20591816f80390abe /diff-lib.c
parentefdfd6c8d418a2c12f31cacb50fa8a91b2b868c8 (diff)
downloadgit-646b3299613f0dd947557bc965660986d024322b.tar.gz
Fix typo: do not show name1 when name2 fails
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff-lib.c')
-rw-r--r--diff-lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-lib.c b/diff-lib.c
index 1d184422a5..17b9a56fa2 100644
--- a/diff-lib.c
+++ b/diff-lib.c
@@ -43,7 +43,7 @@ static int queue_diff(struct diff_options *o,
}
if (name2) {
if (stat(name2, &st))
- return error("Could not access '%s'", name1);
+ return error("Could not access '%s'", name2);
mode2 = st.st_mode;
}