[svn-commits] mmichelson: branch mmichelson/forward-loop r87066 - /team/mmichelson/forward-...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 25 17:35:21 CDT 2007


Author: mmichelson
Date: Thu Oct 25 17:35:20 2007
New Revision: 87066

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87066
Log:
Kevin pointed out a way to save some stack space. Thanks very much!


Modified:
    team/mmichelson/forward-loop/apps/app_queue.c

Modified: team/mmichelson/forward-loop/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/forward-loop/apps/app_queue.c?view=diff&rev=87066&r1=87065&r2=87066
==============================================================================
--- team/mmichelson/forward-loop/apps/app_queue.c (original)
+++ team/mmichelson/forward-loop/apps/app_queue.c Thu Oct 25 17:35:20 2007
@@ -2557,10 +2557,7 @@
 		struct callattempt *tmp = ast_calloc(1, sizeof(*tmp));
 		struct ast_dialed_interface *di;
 		int dialed = 0;
-		char *tech = ast_strdupa(cur->interface);
 		AST_LIST_HEAD(, ast_dialed_interface) *dialed_interfaces;
-		tech = strsep(&tech,"/");
-		ast_log(LOG_DEBUG, "tech is %s\n", tech);
 		if (!tmp) {
 			ao2_ref(cur, -1);
 			ast_mutex_unlock(&qe->parent->lock);
@@ -2592,7 +2589,7 @@
 				break;
 			}
 		}
-		if (!dialed && strcasecmp(tech, "Local")) {
+		if (!dialed && strncasecmp(cur->interface, "Local/", 6)) {
 			if(!(di = ast_calloc(1, sizeof(*di) + strlen(cur->interface)))) {
 				ao2_ref(cur, -1);
 				AST_LIST_UNLOCK(dialed_interfaces);




More information about the svn-commits mailing list