Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin-apply: Show a more descriptive error on failure when opening a patch
[gitweb.git]
/
builtin-rev-list.c
diff --git
a/builtin-rev-list.c
b/builtin-rev-list.c
index 1cb5f67119a37b8490c76f4846372ba28a316fbf..de80158fd4762aa692193edb7c0f8e85e6189877 100644
(file)
--- a/
builtin-rev-list.c
+++ b/
builtin-rev-list.c
@@
-520,7
+520,7
@@
static void read_revisions_from_stdin(struct rev_info *revs)
while (fgets(line, sizeof(line), stdin) != NULL) {
int len = strlen(line);
- if (line[len - 1] == '\n')
+ if (l
en && l
ine[len - 1] == '\n')
line[--len] = 0;
if (!len)
break;