Thread (1 message) 1 message, 1 author, 2018-03-25

Re: [PATCH] run-command: use strbuf_addstr() for adding a string to a strbuf

From: Junio C Hamano <hidden>
Date: 2018-03-25 16:49:29

René Scharfe [off-list ref] writes:
Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci.

Signed-off-by: Rene Scharfe <redacted>
---
That line was added by e73dd78699 (run-command.c: introduce
trace_run_command()).
Thanks.
quoted hunk
 run-command.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/run-command.c b/run-command.c
index a483d5904a..84899e423f 100644
--- a/run-command.c
+++ b/run-command.c
@@ -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);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help