diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-18 17:44:12 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-18 17:44:12 +0400 |
commit | d6317cec73e061d038271a53fcb2176ffcdda938 (patch) | |
tree | 536d05a280a7027f8451ab537094979c83ac2a2a | |
parent | 9ce994d6001fa1e4eeb299dbeb65425aa943cb63 (diff) | |
download | rspamd-d6317cec73e061d038271a53fcb2176ffcdda938.tar.gz rspamd-d6317cec73e061d038271a53fcb2176ffcdda938.zip |
Fix to json output.
-rw-r--r-- | src/protocol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index df7ef4f9c..811fb2c4c 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -875,6 +875,10 @@ metric_symbols_callback_json (gpointer key, gpointer value, void *user_data) cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset, " \"description\": \"%s\"" CRLF, description); } + else { + cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset, + " \"description\": \"\"" CRLF); + } if (s->options) { cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset, " \"options\": [" CRLF " "); |