From e4cc67b4fce50c1f42f5c00a40ace28e89fc2cf6 Mon Sep 17 00:00:00 2001 From: file Date: Mon, 13 Nov 2006 21:26:36 +0000 Subject: Initialize global pointers for connection and result to NULL. (issue #8356 reported by james) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47583 f38db490-d61c-443f-a65b-d21fe96a405b --- cdr/cdr_pgsql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cdr') diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index 776bf6a54..17ed573c3 100644 --- a/cdr/cdr_pgsql.c +++ b/cdr/cdr_pgsql.c @@ -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) { -- cgit v1.2.3