Skip to content

Commit b51b8a9

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Properly initialize out parameter
2 parents 1db95f8 + 71e9013 commit b51b8a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/odbc/php_odbc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ int odbc_bindcols(odbc_result *result)
956956

957957
rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), PHP_ODBC_SQL_DESC_NAME,
958958
result->values[i].name, sizeof(result->values[i].name), &colnamelen, 0);
959+
result->values[i].coltype = 0;
959960
rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_TYPE,
960961
NULL, 0, NULL, &result->values[i].coltype);
961962

0 commit comments

Comments
 (0)