[asterisk-commits] file: trunk r170498 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 23 11:32:27 CST 2009
Author: file
Date: Fri Jan 23 11:32:26 2009
New Revision: 170498
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170498
Log:
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
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=170498&r1=170497&r2=170498
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Jan 23 11:32:26 2009
@@ -10191,6 +10191,8 @@
/* 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 == '\\') {
More information about the asterisk-commits
mailing list