]> granicus.if.org Git - php/commitdiff
Remove unused variable
authorPeter Kokot <peterkokot@gmail.com>
Sun, 12 May 2019 01:23:37 +0000 (03:23 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 12 May 2019 01:23:37 +0000 (03:23 +0200)
ext/odbc/php_odbc.c

index c37d3a49299209546ccc2fe29342cf666540d9b3..37257c3e12c6a4d4b81921e466253e3374f0c68d 100644 (file)
@@ -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);