git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16711
d0543943-73ff-0310-b7d9-
9358b9ac24b2
char *func = (char *) switch_xml_attr_soft(action, "function");
if (strchr(pattern, '(') && strchr(adata, '$')) {
- len = (uint32_t) (strlen(data) + strlen(adata) + 10) * proceed;
+ len = (uint32_t) (strlen(data) + strlen(adata) + 10) * (proceed ? proceed : 1);
if (!(substituted = malloc(len))) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Memory Error!\n");
switch_regex_safe_free(re);