X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.c;h=2862107e9567e710bbc0f39c74f6a95ea52c1ffb;hb=6c1c46b74d3c184cec3254f07a1f11344d63337e;hp=a94dc9f17f881bb5c4b2efc26bd34556c769ccb2;hpb=132a4c69f5c50b8437acb8edf015c751169897be;p=pazpar2-moved-to-github.git diff --git a/src/session.c b/src/session.c index a94dc9f..2862107 100644 --- a/src/session.c +++ b/src/session.c @@ -1082,8 +1082,11 @@ 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)); + + res[*count].query_data = + client_get_query(cl, &res[*count].query_type, nmem); wrbuf_destroy(w); (*count)++; }