pbx.c: Make ast_str_substitute_variables_full() not mask variables.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 28 Aug 2013 16:13:18 +0000 (16:13 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 28 Aug 2013 16:13:18 +0000 (16:13 +0000)
........

Merged revisions 397859 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397860 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 0b970bb..fa2f645 100644 (file)
@@ -4284,12 +4284,12 @@ void ast_str_substitute_variables_full(struct ast_str **buf, ssize_t maxlen, str
 
                        /* 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 @@ void ast_str_substitute_variables_full(struct ast_str **buf, ssize_t maxlen, str
 
                        /* 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);