diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-12 00:14:15 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-12 00:14:15 -0800 |
commit | 35865ca24500a0d46a012f7a55f39bf36389f7ba (patch) | |
tree | 9ffdddf391bc8de021d60c7c9b631c1882b1bf2c /builtin-for-each-ref.c | |
parent | Merge branch 'js/upload-pack' (diff) | |
parent | Merge branch 'sp/maint-plug-traverse-commit-list-leak' into maint (diff) | |
download | tgif-35865ca24500a0d46a012f7a55f39bf36389f7ba.tar.xz |
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.c | 2 |
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; } |