fix misc issues flagged by clang scan-build

This commit is contained in:
Antonio SJ Musumeci 2015-10-22 17:26:51 -04:00
parent f3a6876362
commit 93cedabe9c
3 changed files with 2 additions and 3 deletions

View file

@ -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)