From: Tilghman Lesher Date: Thu, 3 Jan 2008 21:37:02 +0000 (+0000) Subject: Missed initialization caused crash. X-Git-Tag: 1.4.18~12^2~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d96102150aa88bebac674fb0442282979022b73;p=thirdparty%2Fasterisk.git Missed initialization caused crash. Reported and fixed by: tiziano (Closes issue #11671) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96318 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index aecff9b58d..7fc3310905 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -498,7 +498,7 @@ static struct ast_config *config_pgsql(const char *database, const char *table, 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;