From ccc7cb06c4edf2b1be966e9d1b6b96249448a02b Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 27 Nov 2007 23:21:13 +0000 Subject: Instead of depending on the return value of ast_true(), explicitly set the eventwhencalled variable to 1. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89844 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index d392fdbb8..effb13704 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1016,7 +1016,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char if (!strcasecmp(val, "vars")) { q->eventwhencalled = QUEUE_EVENT_VARIABLES; } else { - q->eventwhencalled = -(ast_true(val)); + q->eventwhencalled = ast_true(val) ? 1 : 0; } } else if (!strcasecmp(param, "reportholdtime")) { q->reportholdtime = ast_true(val); -- cgit v1.2.3