From: Adam Dickmeiss Date: Tue, 2 Jun 2015 13:49:30 +0000 (+0200) Subject: Remove redundant wrbuf_puts call X-Git-Tag: v1.10.0~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=592c169f15e5c63b629dcc2b561c009615d7a6bf;p=pazpar2-moved-to-github.git Remove redundant wrbuf_puts call --- diff --git a/src/session.c b/src/session.c index a94dc9f..9a68a22 100644 --- a/src/session.c +++ b/src/session.c @@ -1082,8 +1082,8 @@ static struct hitsbytarget *hitsbytarget_nb(struct session *se, session_settings_dump(se, client_get_database(cl), w); res[*count].settings_xml = nmem_strdup(nmem, wrbuf_cstr(w)); wrbuf_rewind(w); - wrbuf_puts(w, ""); - res[*count].suggestions_xml = nmem_strdup(nmem, client_get_suggestions_xml(cl, w)); + res[*count].suggestions_xml = + nmem_strdup(nmem, client_get_suggestions_xml(cl, w)); wrbuf_destroy(w); (*count)++; }