mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user