Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/url.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-10 12:54:24 +0400
committerJunio C Hamano <gitster@pobox.com>2014-07-11 01:06:46 +0400
commit294b2680cd89234618e329e090b68dc69cc41a37 (patch)
tree56c2477f0369e9476d71d41068bfa3d8dab3cf9e /url.c
parente992d1eb39033206dd44143ff28214b837c3d89f (diff)
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 335d97d3f7..7ca2a69e10 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) {