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
This commit is contained in:
Joshua Colp
2006-11-13 21:26:36 +00:00
parent 442781850b
commit b640d51d40

View File

@@ -64,8 +64,8 @@ static int connected = 0;
AST_MUTEX_DEFINE_STATIC(pgsql_lock); AST_MUTEX_DEFINE_STATIC(pgsql_lock);
PGconn *conn; PGconn *conn = NULL;
PGresult *result; PGresult *result = NULL;
static int pgsql_log(struct ast_cdr *cdr) static int pgsql_log(struct ast_cdr *cdr)
{ {