Change the first field, or we don't get the necessary field separation.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 5 Feb 2009 19:36:29 +0000 (19:36 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 5 Feb 2009 19:36:29 +0000 (19:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173657 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_config_sqlite.c

index 114aa80..483ab21 100644 (file)
@@ -819,6 +819,7 @@ static int cdr_handler(struct ast_cdr *cdr)
                        ast_str_append(&sql2, 0, "%s%s", first ? "" : ",", tmp);
                        sqlite_freemem(tmp);
                }
+               first = 0;
        }
        release_table(tbl);