From: Kevin P. Fleming Date: Thu, 3 May 2007 00:23:00 +0000 (+0000) Subject: doh... initializing the pointer variable will work just a bit better X-Git-Tag: 1.2.19~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3240699025a8e20e4c7d4ad71d1e4e182f3abb;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index fb31207577..ec8e2be7bc 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;