]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix warning
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 17 Sep 2022 13:57:05 +0000 (14:57 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 17 Sep 2022 13:57:05 +0000 (14:57 +0100)
src/client/rspamc.cxx

index cb847bf5b597657b16f20e336647a6507f25a578..9719445b667795af56b78264eb9b4fdfb433ddd0 100644 (file)
@@ -1034,8 +1034,8 @@ rspamc_symbols_output(FILE *out, ucl_object_t *obj)
                                fmt::print(out, "Message - {}: {}\n",
                                                ucl_object_key(cmesg), ucl_object_tostring(cmesg));
                        } else {
-                               unsigned char *rendered_message;
-                               rendered_message = ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT);
+                               char *rendered_message;
+                               rendered_message = (char *)ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT);
                                fmt::print(out, "Message - {}: {:.60}\n",
                                                ucl_object_key(cmesg), rendered_message);
                                free(rendered_message);