php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #79277
Patch init-displaysize revision 2020-02-23 12:04 UTC by cmb@php.net
Patch odbc_tracelog_revised revision 2020-02-16 06:19 UTC by khleung at isfactory dot com
Patch odbc_tracelog revision 2020-02-16 06:08 UTC by khleung at isfactory dot com

Patch init-displaysize for PDO ODBC Bug #79277

Patch version 2020-02-23 12:04 UTC

Return to Bug #79277 | Download this patch
Patch Revisions:

Developer: cmb@php.net

 ext/pdo_odbc/odbc_stmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c
index 18abc475b9..4a761dd1b9 100644
--- a/ext/pdo_odbc/odbc_stmt.c
+++ b/ext/pdo_odbc/odbc_stmt.c
@@ -567,7 +567,7 @@ static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno)
 	RETCODE rc;
 	SWORD	colnamelen;
 	SQLULEN	colsize;
-	SQLLEN displaysize;
+	SQLLEN displaysize = 0;
 
 	rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname,
 			sizeof(S->cols[colno].colname)-1, &colnamelen,
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 22:01:28 2024 UTC