[asterisk-commits] rmudgett: branch 12 r397859 - /branches/12/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 28 11:12:32 CDT 2013


Author: rmudgett
Date: Wed Aug 28 11:12:27 2013
New Revision: 397859

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397859
Log:
pbx.c: Make ast_str_substitute_variables_full() not mask variables.

Modified:
    branches/12/main/pbx.c

Modified: branches/12/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/pbx.c?view=diff&rev=397859&r1=397858&r2=397859
==============================================================================
--- branches/12/main/pbx.c (original)
+++ branches/12/main/pbx.c Wed Aug 28 11:12:27 2013
@@ -4284,12 +4284,12 @@
 
 			/* Substitute if necessary */
 			if (needsub) {
-				size_t used;
+				size_t my_used;
+
 				if (!substr2) {
 					substr2 = ast_str_create(16);
 				}
-
-				ast_str_substitute_variables_full(&substr2, 0, c, headp, ast_str_buffer(substr1), &used);
+				ast_str_substitute_variables_full(&substr2, 0, c, headp, ast_str_buffer(substr1), &my_used);
 				finalvars = ast_str_buffer(substr2);
 			} else {
 				finalvars = ast_str_buffer(substr1);
@@ -4360,12 +4360,12 @@
 
 			/* Substitute if necessary */
 			if (needsub) {
-				size_t used;
+				size_t my_used;
+
 				if (!substr2) {
 					substr2 = ast_str_create(16);
 				}
-
-				ast_str_substitute_variables_full(&substr2, 0, c, headp, ast_str_buffer(substr1), &used);
+				ast_str_substitute_variables_full(&substr2, 0, c, headp, ast_str_buffer(substr1), &my_used);
 				finalvars = ast_str_buffer(substr2);
 			} else {
 				finalvars = ast_str_buffer(substr1);




More information about the asterisk-commits mailing list