summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-06-01 11:58:57 +0300
committerDmitry Stogov <dmitry@zend.com>2018-06-01 11:58:57 +0300
commit0b90cf85a6ace22abd0f9f86d5015a5b6db92387 (patch)
treee01be0712ad1d7dbcd61c81ce03b9544a69e4972 /ext/odbc
parent9e0f131d2b0e8bf98859c12104a7b0cd8951c135 (diff)
downloadphp-git-0b90cf85a6ace22abd0f9f86d5015a5b6db92387.tar.gz
Removed "dead" code (zend_hash_update() never fails)
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index fefb6d91b2..0ecdee98e5 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -2677,12 +2677,8 @@ try_and_get_another_connection:
new_index_ptr.ptr = (void *)(zend_uintptr_t)Z_RES_HANDLE_P(return_value);
new_index_ptr.type = le_index_ptr;
- if (zend_hash_str_update_mem(&EG(regular_list), hashed_details, hashed_len, (void *) &new_index_ptr,
- sizeof(zend_resource)) == NULL) {
- efree(hashed_details);
- RETURN_FALSE;
- /* XXX Free Connection */
- }
+ zend_hash_str_update_mem(&EG(regular_list), hashed_details, hashed_len, (void *) &new_index_ptr,
+ sizeof(zend_resource));
ODBCG(num_links)++;
}
efree(hashed_details);