mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user