[asterisk-commits] russell: branch 1.4 r89844 - /branches/1.4/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 27 17:21:14 CST 2007


Author: russell
Date: Tue Nov 27 17:21:13 2007
New Revision: 89844

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89844
Log:
Instead of depending on the return value of ast_true(), explicitly set the
eventwhencalled variable to 1.

Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=89844&r1=89843&r2=89844
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Nov 27 17:21:13 2007
@@ -1016,7 +1016,7 @@
 		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);




More information about the asterisk-commits mailing list