From b0d7551c807e4038a027df48f65c3055dce8c6a9 Mon Sep 17 00:00:00 2001 From: Raymond Chandler Date: Sun, 2 Mar 2014 03:10:45 -0500 Subject: [PATCH] use newSQL --- src/mod/applications/mod_lcr/mod_lcr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/applications/mod_lcr/mod_lcr.c b/src/mod/applications/mod_lcr/mod_lcr.c index 362fb54ff6..37b3e431d7 100644 --- a/src/mod/applications/mod_lcr/mod_lcr.c +++ b/src/mod/applications/mod_lcr/mod_lcr.c @@ -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 */ if (cb_struct->profile->custom_sql_has_percent == SWITCH_TRUE) { newSQL = switch_string_replace(custom_sql, "%q", digits); + custom_sql = newSQL; } /* expand the vars */