aboutsummaryrefslogtreecommitdiffstats
path: root/cdr/cdr_pgsql.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdr/cdr_pgsql.c')
-rw-r--r--cdr/cdr_pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c
index b14e018fb..e8f5b73c1 100644
--- a/cdr/cdr_pgsql.c
+++ b/cdr/cdr_pgsql.c
@@ -66,8 +66,8 @@ static int connected = 0;
AST_MUTEX_DEFINE_STATIC(pgsql_lock);
-static PGconn *conn;
-static PGresult *result;
+static PGconn *conn = NULL;
+static PGresult *result = NULL;
static int pgsql_log(struct ast_cdr *cdr)
{