diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-23 17:32:26 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-23 17:32:26 +0000 |
commit | 33f2a2742ef44cfb217379fd84077f9cd4c4ce54 (patch) | |
tree | 777ae05a56192d77e7a67592f6cb0c2c67e8a1c1 /apps/app_voicemail.c | |
parent | 60f064a0f29935350b53b993197d32f07dc43a25 (diff) |
Reset the ast_str used for escape substitution. We need to do this since it is a thread local variable that may contain the value of a previous substitution.
(closes issue #14312)
Reported by: pj
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@170498 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 8afa70a73..bb1366bad 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -10191,6 +10191,8 @@ static const char *substitute_escapes(const char *value) /* Add 16 for fudge factor */ struct ast_str *str = ast_str_thread_get(&global_app_buf, strlen(value) + 16); + ast_str_reset(str); + /* Substitute strings \r, \n, and \t into the appropriate characters */ for (current = (char *) value; *current; current++) { if (*current == '\\') { |