From 595f01984f94e9f06cdc76d9bb255ba9943007a2 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 13 Nov 2006 21:28:57 +0000 Subject: [PATCH] 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/branches/1.4@47584 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cdr/cdr_pgsql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index b14e018fb5..e8f5b73c16 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) {