diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-11-19 17:13:29 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-11-19 17:13:29 +0000 |
commit | 524588c345b527182ee923fcfe5b843980cf232a (patch) | |
tree | ecc4d6b3c6674cd92bfbfb493cb0c30bc9365fe6 /res/res_calendar.c | |
parent | a0d9eab38997b1ba9e64f1b37f84f2fdcbde7c6e (diff) |
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@428246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_calendar.c')
-rw-r--r-- | res/res_calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_calendar.c b/res/res_calendar.c index c04a950c1..980e14125 100644 --- a/res/res_calendar.c +++ b/res/res_calendar.c @@ -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))) { |