Merge branch 'rs/use-strbuf-addstr'
* rs/use-strbuf-addstr: use strbuf_addstr() instead of strbuf_addf() with "%s" use strbuf_addstr() for adding constant strings to a strbuf
This commit is contained in:
2
http.c
2
http.c
@ -1225,7 +1225,7 @@ void append_remote_object_url(struct strbuf *buf, const char *url,
|
||||
|
||||
strbuf_addf(buf, "objects/%.*s/", 2, hex);
|
||||
if (!only_two_digit_prefix)
|
||||
strbuf_addf(buf, "%s", hex+2);
|
||||
strbuf_addstr(buf, hex + 2);
|
||||
}
|
||||
|
||||
char *get_remote_object_url(const char *url, const char *hex,
|
||||
|
||||
Reference in New Issue
Block a user