mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fix misc issues flagged by clang scan-build
This commit is contained in:
parent
f3a6876362
commit
93cedabe9c
3 changed files with 2 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ gid_t_cache::cache(const uid_t uid,
|
|||
if(pwdrv != NULL && rv == 0)
|
||||
{
|
||||
rec->size = 0;
|
||||
rv = ::getgrouplist(pwd.pw_name,gid,NULL,&rec->size);
|
||||
::getgrouplist(pwd.pw_name,gid,NULL,&rec->size);
|
||||
rec->size = std::min(MAXGIDS,rec->size);
|
||||
rv = ::getgrouplist(pwd.pw_name,gid,rec->gids,&rec->size);
|
||||
if(rv == -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue