X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fhttp_command.c;h=8c21c8cd1b0ffac4deed65535d24dae7ec63fb5e;hb=014645e6781e165aa2b4473cd73f21daa93f8076;hp=b3e4dc7c60cb69c7f82cd1bfdb2a68123b8d6c2d;hpb=7caf759e76b964ad57f2fa0336e174ff0f2cb098;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index b3e4dc7..8c21c8c 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -721,11 +721,10 @@ static void cmd_bytarget(struct http_channel *c) if (settings && *settings == '1') { wrbuf_puts(c->wrbuf, "\n"); - wrbuf_puts(c->wrbuf, wrbuf_cstr(ht[i].settings_xml)); + wrbuf_puts(c->wrbuf, ht[i].settings_xml); wrbuf_puts(c->wrbuf, "\n"); } wrbuf_puts(c->wrbuf, ""); - wrbuf_destroy(ht[i].settings_xml); } wrbuf_puts(c->wrbuf, "");