]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Initialize global pointers for connection and result to NULL. (issue #8356 reported...
authorJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 21:26:36 +0000 (21:26 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 21:26:36 +0000 (21:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47583 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_pgsql.c

index 776bf6a54ea26f409c234ff11d1fd8f28dd0b7e1..17ed573c306608d088240b541c7383abc1caf74a 100644 (file)
@@ -64,8 +64,8 @@ static int connected = 0;
 
 AST_MUTEX_DEFINE_STATIC(pgsql_lock);
 
-PGconn         *conn;
-PGresult       *result;
+PGconn         *conn = NULL;
+PGresult       *result = NULL;
 
 static int pgsql_log(struct ast_cdr *cdr)
 {