diff options
Diffstat (limited to 'src/lua/lua_message.c')
-rw-r--r-- | src/lua/lua_message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_message.c b/src/lua/lua_message.c index 70e33981b..1026c3690 100644 --- a/src/lua/lua_message.c +++ b/src/lua/lua_message.c @@ -94,7 +94,7 @@ lua_check_message (lua_State * L) { void *ud = luaL_checkudata (L, 1, "rspamd{message}"); luaL_argcheck (L, ud != NULL, 1, "'message' expected"); - return *((GMimeMessage **) ud); + return ud ? *((GMimeMessage **) ud) : NULL; } |