Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
strbuf_setlen(): do not barf on setting length of an empty buffer to 0
author
Junio C Hamano
<gitster@pobox.com>
Wed, 26 Sep 2007 09:26:06 +0000
(
02:26
-0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 26 Sep 2007 09:27:05 +0000
(
02:27
-0700)
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>
raw
|
patch
| inline |
side by side
(from:
a8f3e22
)
No differences found