diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 21:26:36 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 21:26:36 +0000 |
commit | e4cc67b4fce50c1f42f5c00a40ace28e89fc2cf6 (patch) | |
tree | 037cfea86a081b8bac0d0c9e795e6ae58fd90b07 /cdr | |
parent | b159e862c5591713ad2a11272e3bc183a7ec4c5d (diff) |
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
Diffstat (limited to 'cdr')
-rw-r--r-- | cdr/cdr_pgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |