Merge branch 'mh/http-urlmatch-cleanup'
[gitweb.git] / trace2 / tr2_dst.c
index 5dda0ca1cdb5d09a8cdfb27dd45d4436f3e8aa6f..c69857515fa5e5c0dcc937fc33b894058e04bcfb 100644 (file)
@@ -215,13 +215,8 @@ static int tr2_dst_try_unix_domain_socket(struct tr2_dst *dst,
 static void tr2_dst_malformed_warning(struct tr2_dst *dst,
                                      const char *tgt_value)
 {
-       struct strbuf buf = STRBUF_INIT;
-
-       strbuf_addf(&buf, "trace2: unknown value for '%s': '%s'",
-                   tr2_sysenv_display_name(dst->sysenv_var), tgt_value);
-       warning("%s", buf.buf);
-
-       strbuf_release(&buf);
+       warning("trace2: unknown value for '%s': '%s'",
+               tr2_sysenv_display_name(dst->sysenv_var), tgt_value);
 }
 
 int tr2_dst_get_trace_fd(struct tr2_dst *dst)