diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-08-20 16:18:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-20 16:18:16 -0700 |
commit | e28a8670a66125aa29d7a5ea10052c0f6824c2ba (patch) | |
tree | 6506300a0123f026feabacf2eae76a665390c8eb /builtin-log.c | |
parent | 3814c07498f87e7d27b55175ca2852fcc4cd27f4 (diff) | |
parent | 9b99e641c11044dba661f574f9098d362a3f0ef8 (diff) | |
download | git-e28a8670a66125aa29d7a5ea10052c0f6824c2ba.tar.gz |
Merge branch 'maint'
* maint:
Update draft release notes for 1.6.0.1
Add hints to revert documentation about other ways to undo changes
Install templates with the user and group of the installing personality
"git-merge": allow fast-forwarding in a stat-dirty tree
completion: find out supported merge strategies correctly
decorate: allow const objects to be decorated
for-each-ref: cope with tags with incomplete lines
diff --check: do not get confused by new blank lines in the middle
remote.c: remove useless if-before-free test
mailinfo: avoid violating strbuf assertion
git format-patch: avoid underrun when format.headers is empty or all NLs
Diffstat (limited to 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c index f4975cf35f..911fd65990 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -461,7 +461,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); |