mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-04-24 22:14:05 +08:00
Merge pull request #169 from trapexit/scan-check-cleanup
fix misc issues flagged by clang scan-build
This commit is contained in:
commit
762a04242f
@ -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())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user