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,
|