[asterisk-commits] file: branch 1.2 r47583 - /branches/1.2/cdr/cdr_pgsql.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 13 14:26:37 MST 2006


Author: file
Date: Mon Nov 13 15:26:36 2006
New Revision: 47583

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47583
Log:
Initialize global pointers for connection and result to NULL. (issue #8356 reported by james)

Modified:
    branches/1.2/cdr/cdr_pgsql.c

Modified: branches/1.2/cdr/cdr_pgsql.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/cdr/cdr_pgsql.c?view=diff&rev=47583&r1=47582&r2=47583
==============================================================================
--- branches/1.2/cdr/cdr_pgsql.c (original)
+++ branches/1.2/cdr/cdr_pgsql.c Mon Nov 13 15:26:36 2006
@@ -64,8 +64,8 @@
 
 AST_MUTEX_DEFINE_STATIC(pgsql_lock);
 
-PGconn		*conn;
-PGresult	*result;
+PGconn		*conn = NULL;
+PGresult	*result = NULL;
 
 static int pgsql_log(struct ast_cdr *cdr)
 {



More information about the asterisk-commits mailing list