diff options
Diffstat (limited to 'res')
-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 fb3120757..ec8e2be7b 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -424,7 +424,7 @@ static struct ast_config *config_odbc(const char *database, const char *table, c SQLINTEGER err=0, cat_metric=0, last_cat_metric=0; char category[128], var_name[128], var_val[1024]; char sqlbuf[1024]; - char *sql; + char *sql = sqlbuf; size_t sqlleft = sizeof(sqlbuf); SQLSMALLINT rowcount=0; SQLHSTMT stmt; |