threads / patch / 6501

patch, 3 partsmerge-one-file: fix late-night typo

Subject: [PATCH 4/3] merge-one-file: fix late-night typo

## tl;dr

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

replies: 0people: 1as markdown or json

Johannes Schindelin· Jan 24, 2007, 11:26 UTC · lore
While fixing up some debugging cruft, this slipped in.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
	One day I will learn not to send off things when too tired.
	*sigh*
 builtin-merge-one-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to builtin-merge-one-file.c +1 −1
diff --git a/builtin-merge-one-file.c b/builtin-merge-one-file.c
index 5f74c6b..75774ce 100644
--- a/builtin-merge-one-file.c
+++ b/builtin-merge-one-file.c
@@ -25,7 +25,7 @@ int cmd_merge_one_file(int argc, const char **argv, const char *prefix)
 	for (i = 0; i < 3; i++) {
 		char *p;
 		hashes[i] = buffers[i];
-		if (!*argv[i + 1] || *argv[i + 1])
+		if (!argv[i + 1] || !*argv[i + 1])
 			hashes[i] = NULL;
 		else if (get_sha1_hex(argv[i + 1], buffers[i]))
 			return error("invalid hash: %s\n", argv[i + 1]);
-- 
1.5.0.rc2.gee75e-dirty

← back to recent threads