aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index c4e595c8b..ef05102c5 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1247,7 +1247,7 @@ lua_task_get_queue_id (lua_State *L)
{
struct rspamd_task *task = lua_check_task (L, 1);
- if (task && task->queue_id != NULL && task->queue_id != "undef") {
+ if (task && task->queue_id != NULL && strcmp (task->queue_id, "undef") != 0) {
lua_pushstring (L, task->queue_id);
return 1;
}