summaryrefslogtreecommitdiff
path: root/url.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-10 08:54:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-10 21:06:46 (GMT)
commit294b2680cd89234618e329e090b68dc69cc41a37 (patch)
tree56c2477f0369e9476d71d41068bfa3d8dab3cf9e /url.c
parente992d1eb39033206dd44143ff28214b837c3d89f (diff)
downloadgit-294b2680cd89234618e329e090b68dc69cc41a37.zip
git-294b2680cd89234618e329e090b68dc69cc41a37.tar.gz
git-294b2680cd89234618e329e090b68dc69cc41a37.tar.bz2
use strbuf_addch for adding single characters
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'url.c')
-rw-r--r--url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/url.c b/url.c
index 335d97d..7ca2a69 100644
--- a/url.c
+++ b/url.c
@@ -121,7 +121,7 @@ void end_url_with_slash(struct strbuf *buf, const char *url)
{
strbuf_addstr(buf, url);
if (buf->len && buf->buf[buf->len - 1] != '/')
- strbuf_addstr(buf, "/");
+ strbuf_addch(buf, '/');
}
void str_end_url_with_slash(const char *url, char **dest) {