doh... initializing the pointer variable will work just a bit better

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2007-05-03 00:23:00 +00:00
parent 0b78d1542c
commit de32406990

View File

@@ -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;