[asterisk-commits] tilghman: branch 1.4 r96318 - /branches/1.4/res/res_config_pgsql.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 3 15:37:02 CST 2008


Author: tilghman
Date: Thu Jan  3 15:37:02 2008
New Revision: 96318

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96318
Log:
Missed initialization caused crash.
Reported and fixed by: tiziano
(Closes issue #11671)

Modified:
    branches/1.4/res/res_config_pgsql.c

Modified: branches/1.4/res/res_config_pgsql.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_config_pgsql.c?view=diff&rev=96318&r1=96317&r2=96318
==============================================================================
--- branches/1.4/res/res_config_pgsql.c (original)
+++ branches/1.4/res/res_config_pgsql.c Thu Jan  3 15:37:02 2008
@@ -498,7 +498,7 @@
 	struct ast_variable *new_v;
 	struct ast_category *cur_cat = NULL;
 	char sqlbuf[1024] = "";
-	char *sql;
+	char *sql = sqlbuf;
 	size_t sqlleft = sizeof(sqlbuf);
 	char last[80] = "";
 	int last_cat_metric = 0;




More information about the asterisk-commits mailing list