projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7343ec3
)
Init status message. Remove new line to match old format
author
Dennis Schafroth
<dennis@indexdata.com>
Tue, 6 Mar 2012 12:39:58 +0000
(13:39 +0100)
committer
Dennis Schafroth
<dennis@indexdata.com>
Tue, 6 Mar 2012 12:39:58 +0000
(13:39 +0100)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
10eb267
..
595f9cf
100644
(file)
--- 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 *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;
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");
else {
/* New protocol, OK or WARNING (...)*/
response_open_no_status(c, "bytarget");
- wrbuf_printf(c->wrbuf, "<status>%s</status>\n", cmd_status);
+ wrbuf_printf(c->wrbuf, "<status>%s</status>", cmd_status);
}
if (count == 0)
}
if (count == 0)