author | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Sep 2007 06:34:01 +0000 (23:34 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Sep 2007 06:34:01 +0000 (23:34 -0700) | ||
commit | b4833a2c62578bdbfd300e296702214cb1b9a601 | |
tree | 89268d44aea3a16ec57d6a4aa860ef517af65095 | tree | snapshot |
parent | 1dffb8fa8056860e769f3a0c6e232d436f5a5c17 | commit | diff |
rerere: Fix use of an empty strbuf.buf
The code incorrectly assumed that strbuf.buf is always an
allocated piece of memory that has NUL at offset strbuf.len.
That assumption does not hold for a freshly initialized empty
strbuf.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The code incorrectly assumed that strbuf.buf is always an
allocated piece of memory that has NUL at offset strbuf.len.
That assumption does not hold for a freshly initialized empty
strbuf.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rerere.c | diff | blob | history |