diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-03-05 17:22:10 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-03-05 17:22:10 +0300 |
commit | bb91bf83f9fc60cbd6cb30e6b2a7858efe1aa4c5 (patch) | |
tree | 52c6406a4416d77a3c28af69c6b6c0d75fe6e087 /ext/mysqlnd/mysqlnd_alloc.c | |
parent | eadff75c7d3351c0c23c8a56e6c05e412e829909 (diff) | |
download | php-git-bb91bf83f9fc60cbd6cb30e6b2a7858efe1aa4c5.tar.gz |
Minimize copying of HashTable realocation
Diffstat (limited to 'ext/mysqlnd/mysqlnd_alloc.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_alloc.c b/ext/mysqlnd/mysqlnd_alloc.c index fd923a3aff..7be3ba79b8 100644 --- a/ext/mysqlnd/mysqlnd_alloc.c +++ b/ext/mysqlnd/mysqlnd_alloc.c @@ -262,7 +262,7 @@ void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) /* -1 is also "true" */ if (*threshold) { #endif - ret = _erealloc(REAL_PTR(ptr), REAL_SIZE(new_size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC); + ret = _erealloc(REAL_PTR(ptr), REAL_SIZE(new_size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC); #if PHP_DEBUG --*threshold; } else if (*threshold == 0) { |