mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-03 16:34:03 +00:00
init: fix codedex
Signed-off-by: sun_fan <sun_fan1@hoperun.com>
This commit is contained in:
parent
8a7090238a
commit
544c3a1c86
@ -70,6 +70,8 @@ static int LoadParamLabels(const char *fileName, SecurityLabelFunc label, void *
|
||||
FILE *fp = fopen(fileName, "r");
|
||||
PARAM_CHECK(fp != NULL, return -1, "Open file %s fail", fileName);
|
||||
SubStringInfo *info = malloc(sizeof(SubStringInfo) * (SUBSTR_INFO_DAC + 1));
|
||||
PARAM_CHECK(info != NULL, (void)fclose(fp);
|
||||
return -1, "Failed to malloc for %s", fileName);
|
||||
char buff[PARAM_BUFFER_SIZE];
|
||||
int infoCount = 0;
|
||||
ParamAuditData auditData = {};
|
||||
|
@ -71,6 +71,7 @@ int ReadFileInDir(const char *dirPath, const char *includeExt,
|
||||
processFile(fileName, context);
|
||||
}
|
||||
}
|
||||
free(fileName);
|
||||
closedir(pDir);
|
||||
return 0;
|
||||
}
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "init_service_manager.h"
|
||||
|
||||
#ifndef OHOS_LITE
|
||||
#include "init_param.h"
|
||||
#include "uv.h"
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user