aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-03 21:37:02 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-03 21:37:02 +0000
commit85633529d0e104097e89b611316224e997fc6079 (patch)
tree0893d2e65928ee860ede039cf673065f5106cc24 /res
parentc1d52bdd3f0f48f14701830e8f8cb8c44f2c19c3 (diff)
Missed initialization caused crash.
Reported and fixed by: tiziano (Closes issue #11671) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96318 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 aecff9b58..7fc331090 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;