aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-18 21:42:41 -0700
committerJunio C Hamano <gitster@pobox.com>2011-10-18 21:42:41 -0700
commit2c4cf667b0b516ffd547e58d7aaf7b584929715a (patch)
treeeb718210d6bdf27f93edd397375165c31f3ae3a8
parent08cfdbb88cd6225b4fc4b8a3cecd0e01758c835d (diff)
parent1844f8d591340bb43e4990c96afd0aba424adf48 (diff)
downloadgit-2c4cf667b0b516ffd547e58d7aaf7b584929715a.tar.gz
git-2c4cf667b0b516ffd547e58d7aaf7b584929715a.tar.xz
Merge branch 'maint'
* maint: strbuf.c: remove unnecessary strbuf_grow() from strbuf_getwholeline()
-rw-r--r--strbuf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/strbuf.c b/strbuf.c
index 9ff1b597c..3ad2cc001 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -357,7 +357,6 @@ int strbuf_getwholeline(struct strbuf *sb, FILE *fp, int term)
{
int ch;
- strbuf_grow(sb, 0);
if (feof(fp))
return EOF;