mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
ast_str: Fix improper member access to struct ast_str members.
Accessing members of struct ast_str outside of the string manipulation API routines is invalid since struct ast_str is supposed to be treated as opaque. Review: https://reviewboard.asterisk.org/r/4194/ ........ Merged revisions 428244 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 428245 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 428246 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -803,7 +803,7 @@ static void *do_notify(void *data)
|
||||
|
||||
for (itervar = event->owner->vars; itervar; itervar = itervar->next) {
|
||||
ast_str_substitute_variables(&tmpstr, 0, chan, itervar->value);
|
||||
pbx_builtin_setvar_helper(chan, itervar->name, tmpstr->str);
|
||||
pbx_builtin_setvar_helper(chan, itervar->name, ast_str_buffer(tmpstr));
|
||||
}
|
||||
|
||||
if (!(apptext = ast_str_create(32))) {
|
||||
|
Reference in New Issue
Block a user