diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-18 17:53:21 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-18 17:53:21 +0400 |
commit | be36308dc3998c5ba00838f63136d8c1bffe350a (patch) | |
tree | 0c7085650f972da3d3e1110e24e6653e6a48f3aa | |
parent | 46ee81d4252f76055836c176edc89dd2914f7fb3 (diff) | |
download | rspamd-be36308dc3998c5ba00838f63136d8c1bffe350a.tar.gz rspamd-be36308dc3998c5ba00838f63136d8c1bffe350a.zip |
Damn.
-rw-r--r-- | src/protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.c b/src/protocol.c index a6da0640c..8d72420a1 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -873,11 +873,11 @@ metric_symbols_callback_json (gpointer key, gpointer value, void *user_data) (gchar *)key, s->score); if (description != NULL) { cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset, - " \"description\": \"%s\"%s" CRLF, description, s->options ? "" : ","); + " \"description\": \"%s\"%s" CRLF, description, s->options ? "," : ""); } else { cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset, - " \"description\": \"\"%s" CRLF, s->options ? "" : ","); + " \"description\": \"\"%s" CRLF, s->options ? "," : ""); } if (s->options) { cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset, |