Skip to content

Commit 82f0d3c

Browse files
committed
Remove unused variable
1 parent 2519827 commit 82f0d3c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/odbc/php_odbc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,8 +2264,6 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
22642264
db_conn->res = zend_register_resource(db_conn, le_pconn);
22652265
RETVAL_RES(db_conn->res);
22662266
} else { /* non persistent */
2267-
zend_resource new_index_ptr;
2268-
22692267
if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) {
22702268
php_error_docref(NULL, E_WARNING,"Too many open connections (%ld)",ODBCG(num_links));
22712269
RETURN_FALSE;
@@ -2276,9 +2274,6 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
22762274
}
22772275
db_conn->res = zend_register_resource(db_conn, le_conn);
22782276
RETVAL_RES(db_conn->res);
2279-
new_index_ptr.ptr = (void *)(zend_uintptr_t)Z_RES_HANDLE_P(return_value);
2280-
new_index_ptr.type = le_index_ptr;
2281-
22822277
ODBCG(num_links)++;
22832278
}
22842279
}

0 commit comments

Comments
 (0)