use newSQL

This commit is contained in:
Raymond Chandler 2014-03-02 03:10:45 -05:00
parent b22aa39e66
commit b0d7551c80
1 changed files with 1 additions and 0 deletions

View File

@ -555,6 +555,7 @@ static char *format_custom_sql(const char *custom_sql, callback_t *cb_struct, co
/* first replace %s with digits to maintain backward compat */ /* first replace %s with digits to maintain backward compat */
if (cb_struct->profile->custom_sql_has_percent == SWITCH_TRUE) { if (cb_struct->profile->custom_sql_has_percent == SWITCH_TRUE) {
newSQL = switch_string_replace(custom_sql, "%q", digits); newSQL = switch_string_replace(custom_sql, "%q", digits);
custom_sql = newSQL;
} }
/* expand the vars */ /* expand the vars */