Merge "cel/cel_pgsql.c: Use the 'SEP' macro when appending a column name"
authorJoshua Colp <jcolp@digium.com>
Thu, 14 May 2015 10:02:13 +0000 (05:02 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Thu, 14 May 2015 10:02:14 +0000 (05:02 -0500)
cel/cel_pgsql.c

index 20c0e44..f495947 100644 (file)
@@ -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) {