From 93224ba0160c80676567032f69c253e439f369e2 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 6 Mar 2012 13:39:58 +0100 Subject: [PATCH] Init status message. Remove new line to match old format --- src/http_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.10.4