diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2018-02-15 16:27:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-15 11:36:15 -0800 |
commit | a8270b0980f88a918f9135e02e86ac6143848d95 (patch) | |
tree | f64c91b40bdc2f0059d997965463eb8e5125a29c | |
parent | convert_to_git(): safe_crlf/checksafe becomes int conv_flags (diff) | |
download | tgif-a8270b0980f88a918f9135e02e86ac6143848d95.tar.xz |
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 <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | strbuf.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -781,7 +781,6 @@ char *xstrdup_tolower(const char *string) result = xmallocz(len); for (i = 0; i < len; i++) result[i] = tolower(string[i]); - result[i] = '\0'; return result; } |