diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-06-01 11:58:57 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-06-01 11:58:57 +0300 |
commit | 0b90cf85a6ace22abd0f9f86d5015a5b6db92387 (patch) | |
tree | e01be0712ad1d7dbcd61c81ce03b9544a69e4972 /ext/odbc | |
parent | 9e0f131d2b0e8bf98859c12104a7b0cd8951c135 (diff) | |
download | php-git-0b90cf85a6ace22abd0f9f86d5015a5b6db92387.tar.gz |
Removed "dead" code (zend_hash_update() never fails)
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/php_odbc.c | 8 |
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); |