修复dac文件为空时同目录下其他dac文件不解析问题

Signed-off-by: zhongning5 <zhongning5@huawei.com>
This commit is contained in:
zhongning5 2023-12-19 18:45:51 +08:00
parent 996a1c3cb2
commit 5b70e36621

View File

@ -182,7 +182,7 @@ static int LoadOneParam_(const uint32_t *context, const char *name, const char *
static int LoadParamLabels(const char *fileName)
{
int result = -1;
int result = 0;
ParamAuditData *auditData = (ParamAuditData *)calloc(1,
sizeof(ParamAuditData) + sizeof(uid_t) * MAX_MEMBER_IN_GROUP);
if (auditData == NULL) {