From e74c8153547e7875028ea7e426072c6d15fe6d00 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Sun, 5 Apr 2015 21:00:57 +0200 Subject: [PATCH] Fix task:get_queue_id() --- src/lua/lua_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 5c1a560f6..618e613df 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1237,7 +1237,7 @@ lua_task_get_received_headers (lua_State * L) static gint lua_task_get_queue_id (lua_State *L) { - struct rspamd_task *task = lua_check_task (L, 1); + struct rspamd_task *task = lua_check_task (L); if (task && task->queue_id != NULL && strcmp (task->queue_id, "undef") != 0) { lua_pushstring (L, task->queue_id); -- 2.39.5