Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
strbuf: remove unnecessary NUL assignment in xstrdup_tolower()
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index 8007be8fbafdc3f4542e27cfc9344044f71d43dc..490f7850e963b8171032986ae18e7c3491115b40 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-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;
}