aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-03 00:23:00 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-03 00:23:00 +0000
commit938890b96e9d6c9c28fe531e4e5180010289f2b9 (patch)
treeea2e7debd8fbe8baf32dd337455c9c1e375a5250 /res
parentd5a3ee3e914d2b2648a00d5e9bafea306f54b9b5 (diff)
doh... initializing the pointer variable will work just a bit better
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@62841 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_config_odbc.c2
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;