Commit 248f66ed authored by René Scharfe's avatar René Scharfe Committed by Junio C Hamano

run-command: use strbuf_addstr() for adding a string to a strbuf

Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci.
Signed-off-by: default avatarRene Scharfe <l.s.r@web.de>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 090a0927
......@@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp)
if (!trace_want(&trace_default_key))
return;
strbuf_addf(&buf, "trace: run_command:");
strbuf_addstr(&buf, "trace: run_command:");
if (cp->dir) {
strbuf_addstr(&buf, " cd ");
sq_quote_buf_pretty(&buf, cp->dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment