summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-05-12 03:24:43 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-05-12 03:24:43 +0200
commitca22b247112bb7d790d35eb8e7d3ff62e1651d57 (patch)
tree488b44acf76e247d69fe4c1631772e373d3c3c8b /ext/odbc
parentb60173af0b488749360c03edab904ae5066a610e (diff)
parentf1552c864f8b89d59be3a51929bd3411e8947c54 (diff)
downloadphp-git-ca22b247112bb7d790d35eb8e7d3ff62e1651d57.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Remove unused variable
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index c37d3a4929..37257c3e12 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -417,7 +417,6 @@ static void _free_odbc_result(zend_resource *rsrc)
{
odbc_result *res = (odbc_result *)rsrc->ptr;
int i;
- RETCODE rc;
if (res) {
if (res->values) {
@@ -434,7 +433,7 @@ static void _free_odbc_result(zend_resource *rsrc)
SQLTransact(res->conn_ptr->henv, res->conn_ptr->hdbc,
(SQLUSMALLINT) SQL_COMMIT);
#endif
- rc = SQLFreeStmt(res->stmt,SQL_DROP);
+ SQLFreeStmt(res->stmt,SQL_DROP);
/* We don't want the connection to be closed after the last statement has been closed
* Connections will be closed on shutdown
* zend_list_delete(res->conn_ptr->id);