diff options
Diffstat (limited to 'res/res_config_odbc.c')
-rw-r--r-- | res/res_config_odbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index e0600d9a6..496050263 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -485,7 +485,7 @@ static struct ast_config *config_odbc(const char *database, const char *table, c int res = 0; struct odbc_obj *obj; char sqlbuf[1024] = ""; - char *sql; + char *sql = sqlbuf; size_t sqlleft = sizeof(sqlbuf); unsigned int last_cat_metric = 0; SQLSMALLINT rowcount = 0; |