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/pgsql/pgsql.c | |
| parent | 9e0f131d2b0e8bf98859c12104a7b0cd8951c135 (diff) | |
| download | php-git-0b90cf85a6ace22abd0f9f86d5015a5b6db92387.tar.gz | |
Removed "dead" code (zend_hash_update() never fails)
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index f0873ce854..c463cd79a9 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -1492,9 +1492,7 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* add it to the hash */ new_index_ptr.ptr = (void *) Z_RES_P(return_value); new_index_ptr.type = le_index_ptr; - if (zend_hash_update_mem(&EG(regular_list), str.s, (void *) &new_index_ptr, sizeof(zend_resource)) == NULL) { - goto err; - } + zend_hash_update_mem(&EG(regular_list), str.s, (void *) &new_index_ptr, sizeof(zend_resource)); PGG(num_links)++; } /* set notice processor */ |
