aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-03 21:43:58 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-03 21:43:58 +0000
commite2ccfacb813e8fdf8956657d8e16ea86c115fe16 (patch)
tree3751bdbcb66b69c5f44c3336b1a23c98281d7179 /res
parent0b2c881d2b6fd5d38447a2b6410e9b331e19933e (diff)
Merged revisions 96318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r96318 | tilghman | 2008-01-03 15:37:02 -0600 (Thu, 03 Jan 2008) | 4 lines Missed initialization caused crash. Reported and fixed by: tiziano (Closes issue #11671) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96332 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_config_pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index ee31b48ef..81da43456 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -665,7 +665,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;