Merged revisions 47584 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 21:32:13 +0000 (21:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 21:32:13 +0000 (21:32 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47584 | file | 2006-11-13 16:28:57 -0500 (Mon, 13 Nov 2006) | 10 lines

Merged revisions 47583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47583 | file | 2006-11-13 16:26:36 -0500 (Mon, 13 Nov 2006) | 2 lines

Initialize global pointers for connection and result to NULL. (issue #8356 reported by james)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47585 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_pgsql.c

index b14e018..e8f5b73 100644 (file)
@@ -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)
 {