From: Dennis Schafroth Date: Tue, 6 Mar 2012 12:39:58 +0000 (+0100) Subject: Init status message. Remove new line to match old format X-Git-Tag: v1.6.11~1^2^2~14 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=93224ba0160c80676567032f69c253e439f369e2;p=pazpar2-moved-to-github.git Init status message. Remove new line to match old format --- diff --git a/src/http_command.c b/src/http_command.c index 10eb267..595f9cf 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -560,7 +560,7 @@ static void cmd_termlist(struct http_channel *c) const char *report = http_argbyname(rq, "report"); int report_status = 0; int report_error = 0; - const char *status_message; + const char *status_message = 0; int active_clients; if (report && !strcmp("error", report)) { report_error = 1; @@ -681,7 +681,7 @@ static void bytarget_response(struct http_channel *c, struct http_session *s, co else { /* New protocol, OK or WARNING (...)*/ response_open_no_status(c, "bytarget"); - wrbuf_printf(c->wrbuf, "%s\n", cmd_status); + wrbuf_printf(c->wrbuf, "%s", cmd_status); } if (count == 0)