diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-16 23:35:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-16 23:35:50 +0100 |
commit | 797ed49118014e8ad121a04b585526734ad6b335 (patch) | |
tree | 7a7592cdeeb04e4c4e45152164789e23163172c2 /src/lua/lua_task.c | |
parent | fc9dbea5f5e423a12d5c8d7324ef48e7369b675c (diff) | |
download | rspamd-797ed49118014e8ad121a04b585526734ad6b335.tar.gz rspamd-797ed49118014e8ad121a04b585526734ad6b335.zip |
Fix some warnings found by coverity scan.
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 014a994e0..d78aff036 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1763,7 +1763,7 @@ lua_textpart_compare_distance (lua_State * L) luaL_argcheck (L, ud != NULL, 2, "'textpart' expected"); other = ud ? *((struct mime_text_part **)ud) : NULL; - if (part->parent && part->parent == other->parent) { + if (other != NULL && part->parent && part->parent == other->parent) { parent = part->parent; ct = g_mime_object_get_content_type (parent); #ifndef GMIME24 |