Skip to content

Commit 248f66e

Browse files
rscharfegitster
authored andcommitted
run-command: use strbuf_addstr() for adding a string to a strbuf
Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 090a092 commit 248f66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp)
621621
if (!trace_want(&trace_default_key))
622622
return;
623623

624-
strbuf_addf(&buf, "trace: run_command:");
624+
strbuf_addstr(&buf, "trace: run_command:");
625625
if (cp->dir) {
626626
strbuf_addstr(&buf, " cd ");
627627
sq_quote_buf_pretty(&buf, cp->dir);

0 commit comments

Comments
 (0)