Match-id-199d65c96dbe9e4917754ef3c04eeebb79f76af9

This commit is contained in:
BianTanggui
2022-04-13 20:50:31 +08:00
parent f5c515d1db
commit 518fc26902
2 changed files with 3 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ static bool MountFileCmdArgParser(struct CmdArgs *args, const char *arg)
char* str = FormatLogMessage("too many files to mount, max number is %u", MAX_MOUNT_NR);
Logger(str, LEVEL_ERROR, SCREEN_YES);
free(str);
return -1;
return false;
}
char *dst = &args->files.list[args->files.count++][0];
@@ -156,7 +156,7 @@ static bool MountDirCmdArgParser(struct CmdArgs *args, const char *arg)
char* str = FormatLogMessage("too many directories to mount, max number is %u", MAX_MOUNT_NR);
Logger(str, LEVEL_ERROR, SCREEN_YES);
free(str);
return -1;
return false;
}
char *dst = &args->dirs.list[args->dirs.count++][0];
@@ -381,7 +381,6 @@ int Process(int argc, char **argv)
Logger("argv pointer is null!", LEVEL_ERROR, SCREEN_YES);
return -1;
}
int c;
int ret;
int optionIndex;