diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-14 11:58:43 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-14 11:58:43 +0100 |
commit | 5d9bd14ccc914301e39fd97015a26e8015918e05 (patch) | |
tree | 60ecce75fdcc89bc772994abb6b1bc282e7a4adc /ext/mysqlnd/mysqlnd_commands.c | |
parent | 86e317ad80a0b676215775245486f39d9d364458 (diff) | |
download | php-git-5d9bd14ccc914301e39fd97015a26e8015918e05.tar.gz |
MySQLnd: Remove some unnecessary allocator failure checks
emalloc/pemalloc are infallible.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_commands.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_commands.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/mysqlnd/mysqlnd_commands.c b/ext/mysqlnd/mysqlnd_commands.c index 953c3a2fcd..57ac24b8c5 100644 --- a/ext/mysqlnd/mysqlnd_commands.c +++ b/ext/mysqlnd/mysqlnd_commands.c @@ -112,11 +112,6 @@ MYSQLND_METHOD(mysqlnd_command, init_db)(MYSQLND_CONN_DATA * const conn, const M } conn->connect_or_select_db.s = mnd_pestrndup(db.s, db.l, conn->persistent); conn->connect_or_select_db.l = db.l; - if (!conn->connect_or_select_db.s) { - /* OOM */ - SET_OOM_ERROR(conn->error_info); - ret = FAIL; - } } DBG_RETURN(ret); |