aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-03 00:23:37 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-03 00:23:37 +0000
commita50b9bd44c16427bb60212e11066d0430bf4ba8f (patch)
tree1c7f86302946ca116de80d9b88b995caa5506e95 /res
parente732d7145b867525ec86a6fb4a01438f849ffce4 (diff)
Merged revisions 62841 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r62841 | kpfleming | 2007-05-02 20:23:00 -0400 (Wed, 02 May 2007) | 2 lines doh... initializing the pointer variable will work just a bit better ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62842 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 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;