[asterisk-commits] kpfleming: branch 1.2 r62841 -
/branches/1.2/res/res_config_odbc.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed May 2 17:23:00 MST 2007
Author: kpfleming
Date: Wed May 2 19:23:00 2007
New Revision: 62841
URL: http://svn.digium.com/view/asterisk?view=rev&rev=62841
Log:
doh... initializing the pointer variable will work just a bit better
Modified:
branches/1.2/res/res_config_odbc.c
Modified: branches/1.2/res/res_config_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_config_odbc.c?view=diff&rev=62841&r1=62840&r2=62841
==============================================================================
--- branches/1.2/res/res_config_odbc.c (original)
+++ branches/1.2/res/res_config_odbc.c Wed May 2 19:23:00 2007
@@ -424,7 +424,7 @@
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;
More information about the asterisk-commits
mailing list