diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2019-11-04 08:47:16 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2019-11-04 08:47:16 +0100 |
commit | c6bef96651ee861baf099a36f0cb1fd4d36669ca (patch) | |
tree | 11c34a89eea97a3416f70b58ed23dc3c4384fa41 /modules | |
parent | 8cfdbe5025224a712f2de79f08463cec209bd152 (diff) | |
download | pam-c6bef96651ee861baf099a36f0cb1fd4d36669ca.tar.gz pam-c6bef96651ee861baf099a36f0cb1fd4d36669ca.tar.bz2 pam-c6bef96651ee861baf099a36f0cb1fd4d36669ca.zip |
Optimize the checkgrouplist function
There is no point in rising the allocation size by doubling when
we can allocate required memory size at once in the second pass.
* libpam/pam_modutil_ingroup.c (checkgrouplist): Allocate some reasonable
default size in first pass and required size in the second pass.
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions