Browse Source
strbuf_setlen() expect to be able to NUL terminate the buffer, but a completely empty strbuf could have an empty buffer with 0 allocation; both the assert() and the assignment for NUL termination would fail. Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
Junio C Hamano
18 years ago
1 changed files with 6 additions and 3 deletions
Loading…
Reference in new issue