diff options
author | René Scharfe <l.s.r@web.de> | 2017-10-01 16:44:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-02 13:13:46 +0900 |
commit | 72d4a9a721d519982cbc97c36f3fcf33b4103ed4 (patch) | |
tree | 5e59453cd9615b9d6b92dbccf88362497dce49db /sequencer.c | |
parent | fa2bb34477120f18d0834a545ac777e6295650d2 (diff) | |
download | git-72d4a9a721d519982cbc97c36f3fcf33b4103ed4.tar.gz |
use strbuf_addstr() for adding strings to strbufs
Use strbuf_addstr() instead of strbuf_addf() for adding strings. That's
simpler and makes the intent clearer.
Patch generated by Coccinelle and contrib/coccinelle/strbuf.cocci;
adjusted indentation in refs/packed-backend.c manually.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c index 60636ce54b..ba95cefc7d 100644 --- a/sequencer.c +++ b/sequencer.c @@ -203,7 +203,7 @@ int sequencer_remove_state(struct replay_opts *opts) free(opts->xopts[i]); free(opts->xopts); - strbuf_addf(&dir, "%s", get_dir(opts)); + strbuf_addstr(&dir, get_dir(opts)); remove_dir_recursively(&dir, 0); strbuf_release(&dir); |