summaryrefslogtreecommitdiff
path: root/cel
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-05-14 05:02:13 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-05-14 05:02:14 -0500
commit1b7febe18f9d272b934adf2f991e922229aabb8a (patch)
tree0a9635697ce2270dedff373dfed4f8bc7153e2d0 /cel
parent03474655151eec7a8c4caeee5b055afc62ee9fd7 (diff)
parent46bb8449e8a7e174b62f5efe8aa7663cff4948fc (diff)
Merge "cel/cel_pgsql.c: Use the 'SEP' macro when appending a column name"
Diffstat (limited to 'cel')
-rw-r--r--cel/cel_pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c
index 20c0e4401..f4959474a 100644
--- a/cel/cel_pgsql.c
+++ b/cel/cel_pgsql.c
@@ -205,7 +205,7 @@ static void pgsql_log(struct ast_event *event)
AST_RWLIST_RDLOCK(&psql_columns);
AST_RWLIST_TRAVERSE(&psql_columns, cur, list) {
LENGTHEN_BUF1(strlen(cur->name) + 2);
- ast_str_append(&sql, 0, "%s\"%s\"", first ? "" : ",", cur->name);
+ ast_str_append(&sql, 0, "%s\"%s\"", SEP, cur->name);
if (strcmp(cur->name, "eventtime") == 0) {
if (strncmp(cur->type, "int", 3) == 0) {