From: Joshua Colp Date: Mon, 13 Nov 2006 21:26:36 +0000 (+0000) Subject: Initialize global pointers for connection and result to NULL. (issue #8356 reported... X-Git-Tag: 1.2.14~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b640d51d4066ec63674c7761ec71215d53b21176;p=thirdparty%2Fasterisk.git 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.2@47583 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index 776bf6a54e..17ed573c30 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) {