diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-28 12:12:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-28 12:12:31 +0100 |
commit | 240f1859bbb0080b26d91e1d3839dc0c66bb789b (patch) | |
tree | 4ab1557db61cd025b2cff48c86fdb4ff408d3d23 /src | |
parent | 5eb500aecb159068b949f2ec21a9223f40427fcc (diff) | |
download | rspamd-240f1859bbb0080b26d91e1d3839dc0c66bb789b.tar.gz rspamd-240f1859bbb0080b26d91e1d3839dc0c66bb789b.zip |
[Minor] Fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/mime_expressions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index 0c036a89c..64344f4b5 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -1008,11 +1008,13 @@ rspamd_header_exists (struct rspamd_task * task, GArray * args, void *unused) return FALSE; } - debug_task ("try to get header %s", (gchar *)arg->data); headerlist = rspamd_message_get_header_array (task, (gchar *)arg->data, FALSE); + debug_task ("try to get header %s: %d", (gchar *)arg->data, + (headerlist != NULL)); + if (headerlist) { return TRUE; } |