diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-12 17:11:40 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-12 17:11:40 +0100 |
commit | cee0fea5482e1bb2fee69bbd3ab681bfbc8e5dc7 (patch) | |
tree | 07ba7f4817efe22406eb6d06c1afba8dec8cca55 /rpminfo.c | |
parent | 6869bee2ad2aa27aa31be800b5117d76b97163b0 (diff) |
micro optimization
Diffstat (limited to 'rpminfo.c')
-rw-r--r-- | rpminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -410,7 +410,7 @@ PHP_FUNCTION(rpmdbsearch) RETURN_FALSE; } - array_init(return_value); + array_init_size(return_value, rpmdbGetIteratorCount(di)); while ((h = rpmdbNextIterator(di)) != NULL) { zval tmp; rpm_header_to_zval(&tmp, h, 0); |