diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-11 13:43:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-12 15:18:17 +0100 |
commit | 72042e8114b7097a84dfbd9d2c5c3253dd1c9eb9 (patch) | |
tree | 88f4525327b83aba35a242cf6fd558ba91bf1eba /src/libmime/message.h | |
parent | c71485f1d8f2d173b23cbbdc9bfb3e022672a368 (diff) | |
download | rspamd-72042e8114b7097a84dfbd9d2c5c3253dd1c9eb9.tar.gz rspamd-72042e8114b7097a84dfbd9d2c5c3253dd1c9eb9.zip |
[Project] Rework plugins
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r-- | src/libmime/message.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h index 880645c0a..9cf67ba82 100644 --- a/src/libmime/message.h +++ b/src/libmime/message.h @@ -159,7 +159,7 @@ struct rspamd_message { #else #define MESSAGE_FIELD(task, field) ((!(task)->message) ? \ - (msg_err_task("no message when getting field %s", #field), g_assert(0)) : \ + (__typeof__((task)->message->field))(msg_err_task("no message when getting field %s", #field), g_assert(0), NULL) : \ ((task)->message->field)) #endif |