diff options
author | Thomas Punt <tpunt@hotmail.co.uk> | 2017-03-16 08:27:57 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-03-16 12:23:55 +0100 |
commit | 932c4b35dc0fece175ca2764e4c82493a5004273 (patch) | |
tree | 11fe3a3551a00a9746f507e4af2c71c6d1dba0d1 /ext/mbstring/php_mbregex.c | |
parent | 9d9defa29aafd3b8cfaed8c6e3f8e59c98d0fcb7 (diff) | |
download | php-git-932c4b35dc0fece175ca2764e4c82493a5004273.tar.gz |
Remove more unnecessary checks on Zend's allocator functions
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 998d9a7072..a2389df880 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -88,9 +88,6 @@ zend_mb_regex_globals *php_mb_regex_globals_alloc(void) { zend_mb_regex_globals *pglobals = pemalloc( sizeof(zend_mb_regex_globals), 1); - if (!pglobals) { - return NULL; - } if (SUCCESS != _php_mb_regex_globals_ctor(pglobals)) { pefree(pglobals, 1); return NULL; |