Skip to content

Commit 2c4cf66

Browse files
committed
Merge branch 'maint'
* maint: strbuf.c: remove unnecessary strbuf_grow() from strbuf_getwholeline()
2 parents 08cfdbb + 1844f8d commit 2c4cf66

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

strbuf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ int strbuf_getwholeline(struct strbuf *sb, FILE *fp, int term)
357357
{
358358
int ch;
359359

360-
strbuf_grow(sb, 0);
361360
if (feof(fp))
362361
return EOF;
363362

0 commit comments

Comments
 (0)