Remove redundant wrbuf_puts call
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Jun 2015 13:49:30 +0000 (15:49 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Jun 2015 13:49:30 +0000 (15:49 +0200)
src/session.c

index a94dc9f..9a68a22 100644 (file)
@@ -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)++;
     }