diff options
-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, |