[svn-commits] tilghman: branch 1.4 r310140 - in /branches/1.4: apps/ res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 9 23:38:48 CST 2011


Author: tilghman
Date: Wed Mar  9 23:38:44 2011
New Revision: 310140

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310140
Log:
Initialize column size to 0 to deal with a potential UnixODBC bug on 64-bit systems.

(closes issue #18295)
 Reported by: pruiz

Modified:
    branches/1.4/apps/app_voicemail.c
    branches/1.4/res/res_config_odbc.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=310140&r1=310139&r2=310140
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Wed Mar  9 23:38:44 2011
@@ -2473,6 +2473,7 @@
 			fprintf(f, "[message]\n");
 		for (x=0;x<colcount;x++) {
 			rowdata[0] = '\0';
+			colsize = 0;
 			collen = sizeof(coltitle);
 			res = SQLDescribeCol(stmt, x + 1, (unsigned char *)coltitle, sizeof(coltitle), &collen, 
 						&datatype, &colsize, &decimaldigits, &nullable);

Modified: branches/1.4/res/res_config_odbc.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/res/res_config_odbc.c?view=diff&rev=310140&r1=310139&r2=310140
==============================================================================
--- branches/1.4/res/res_config_odbc.c (original)
+++ branches/1.4/res/res_config_odbc.c Wed Mar  9 23:38:44 2011
@@ -223,6 +223,7 @@
 	}
 	for (x = 0; x < colcount; x++) {
 		rowdata[0] = '\0';
+		colsize = 0;
 		collen = sizeof(coltitle);
 		res = SQLDescribeCol(stmt, x + 1, (unsigned char *)coltitle, sizeof(coltitle), &collen, 
 					&datatype, &colsize, &decimaldigits, &nullable);
@@ -377,6 +378,7 @@
 		}
 		for (x=0;x<colcount;x++) {
 			rowdata[0] = '\0';
+			colsize = 0;
 			collen = sizeof(coltitle);
 			res = SQLDescribeCol(stmt, x + 1, (unsigned char *)coltitle, sizeof(coltitle), &collen, 
 						&datatype, &colsize, &decimaldigits, &nullable);




More information about the svn-commits mailing list