Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make reflog query '@{1219188291}' act as '@{2008.8.19.16:24:51.-0700}'
[gitweb.git]
/
builtin-log.c
diff --git
a/builtin-log.c
b/builtin-log.c
index 3a7957483031758af5c05afc55a499e617557f1c..9204ffd7607dd6b72a2ef45e7b18921e822070af 100644
(file)
--- a/
builtin-log.c
+++ b/
builtin-log.c
@@
-470,7
+470,7
@@
static int extra_cc_alloc;
static void add_header(const char *value)
{
int len = strlen(value);
- while (value[len - 1] == '\n')
+ while (
len &&
value[len - 1] == '\n')
len--;
if (!strncasecmp(value, "to: ", 4)) {
ALLOC_GROW(extra_to, extra_to_nr + 1, extra_to_alloc);