projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
diff-options: add --stat (take 2)
[git.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index
d534c9b
..
c7bb8db
100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-400,11
+400,11
@@
static int get_one_line(const char *msg, unsigned long len)
while (len--) {
char c = *msg++;
+ if (!c)
+ break;
ret++;
if (c == '\n')
break;
- if (!c)
- return 0;
}
return ret;
}