threads / patch / 6957

patch, 8 partsFix typo: do not show name1 when name2 fails

Subject: [PATCH 1/8] Fix typo: do not show name1 when name2 fails

## tl;dr

One message between Feb 25, 2007 and Feb 25, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Johannes Schindelin· Feb 25, 2007, 22:34 UTC · lore
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 diff-lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to diff-lib.c +1 −1
diff --git a/diff-lib.c b/diff-lib.c
index 1d18442..17b9a56 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;
 	}
 
-- 
1.5.0.1.788.g8ca52

← back to recent threads