diff options
-rw-r--r-- | res/res_config_pgsql.c | 2 |
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; |