diff options
Diffstat (limited to 'src/protocol.c')
-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 " "); |