Fix build warning (which is transmogrified into an error) with my compiler due to...
authorJoshua Colp <jcolp@digium.com>
Mon, 17 Jun 2013 12:28:34 +0000 (12:28 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 17 Jun 2013 12:28:34 +0000 (12:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391982 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index 9f710fe..b73f9ce 100644 (file)
@@ -942,7 +942,7 @@ static long cdr_object_get_billsec(struct cdr_object *cdr)
  */
 static struct ast_cdr *cdr_object_create_public_records(struct cdr_object *cdr)
 {
-       struct ast_cdr *pub_cdr = NULL, *cdr_prev;
+       struct ast_cdr *pub_cdr = NULL, *cdr_prev = NULL;
        struct ast_var_t *it_var, *it_copy_var;
        struct ast_channel_snapshot *party_a;
        struct ast_channel_snapshot *party_b;