fix misc issues flagged by clang scan-build
@ -104,7 +104,7 @@ namespace fs
vector<string> &strs)
{
int flags;
glob_t gbuf;
glob_t gbuf = {0};
flags = 0;
for(size_t i = 0; i < patterns.size(); i++)
@ -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)
@ -196,7 +196,6 @@ process_opt(Config &config,
int rv;
std::vector<std::string> argvalue;
rv = 1;
str::split(argvalue,arg,'=');
switch(argvalue.size())