strbuf: remove unnecessary NUL assignment in xstrdup_tolower()
authorLars Schneider <redacted>
Thu, 15 Feb 2018 15:27:05 +0000 (16:27 +0100)
committerJunio C Hamano <redacted>
Thu, 15 Feb 2018 19:36:15 +0000 (11:36 -0800)
commita8270b0980f88a918f9135e02e86ac6143848d95
treef64c91b40bdc2f0059d997965463eb8e5125a29c
parent8462ff43e42ab67cecd16fdfb59451a53cc8a945
strbuf: remove unnecessary NUL assignment in xstrdup_tolower()

Since 3733e69464 (use xmallocz to avoid size arithmetic, 2016-02-22) we
allocate the buffer for the lower case string with xmallocz(). This
already ensures a NUL at the end of the allocated buffer.

Remove the unnecessary assignment.

Signed-off-by: Lars Schneider <redacted>
Signed-off-by: Junio C Hamano <redacted>
strbuf.c
git clone https://git.99rst.org/PROJECT