summaryrefslogtreecommitdiff
path: root/builtin-for-each-ref.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-12 00:14:15 -0800
committerJunio C Hamano <gitster@pobox.com>2007-11-12 00:14:15 -0800
commit35865ca24500a0d46a012f7a55f39bf36389f7ba (patch)
tree9ffdddf391bc8de021d60c7c9b631c1882b1bf2c /builtin-for-each-ref.c
parent40e2524da9f9fb2806a66a694b9aee722ea3ef0a (diff)
parent9b2a1821245c0e638f7b5e9da81118743fcc0120 (diff)
downloadgit-35865ca24500a0d46a012f7a55f39bf36389f7ba.tar.gz
Merge branch 'maint'
* maint: for-each-ref: fix off by one read. git-branch: remove mention of non-existent '-b' option git-svn: prevent dcommitting if the index is dirty. Fix memory leak in traverse_commit_list
Diffstat (limited to 'builtin-for-each-ref.c')
-rw-r--r--builtin-for-each-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c
index e909e66bed..bfde2e2bbe 100644
--- a/builtin-for-each-ref.c
+++ b/builtin-for-each-ref.c
@@ -304,7 +304,7 @@ static const char *find_wholine(const char *who, int wholen, const char *buf, un
if (!eol)
return "";
eol++;
- if (eol[1] == '\n')
+ if (*eol == '\n')
return ""; /* end of header */
buf = eol;
}