path: root/t/
diff options
authorSebastian Schuberth <>2011-10-28 15:28:28 (GMT)
committerJunio C Hamano <>2011-10-28 15:41:56 (GMT)
commit2564aa48ce007ad265c0d31a7cb7513239447d2b (patch)
tree087f2a1832cebc2aecba80398bb59dce90efa150 /t/
parent900647104e02e545064789f3c6b90a5807fba07b (diff)
blame.c: Properly initialize strbuf after calling, textconv_object()
For a plain string where only the length is known, strbuf.alloc needs to be initialized to the length. Otherwise strbuf.alloc is 0 and a later call to strbuf_setlen() will fail. This bug surfaced when calling git blame under Windows on a *.doc file. The *.doc file is converted to plain text by antiword via the textconv mechanism. However, the plain text returned by antiword contains DOS line endings instead of Unix line endings which triggered the strbuf_setlen() which previous to this patch failed. Signed-off-by: Sebastian Schuberth <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
0 files changed, 0 insertions, 0 deletions