aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-27 23:21:13 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-27 23:21:13 +0000
commitccc7cb06c4edf2b1be966e9d1b6b96249448a02b (patch)
tree446a3c95089ee5c1f3089961fef48b5d23e53770 /apps
parentf3eea3c59b764b3fe17c5626bbc5000eaf34a0a1 (diff)
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
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
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);