提交 4af662c1 编写于 作者: X xionglei6

init: fix codedex

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 a04ae681
......@@ -14,7 +14,6 @@
*/
#ifndef INIT_SERVICE_FILE_
#define INIT_SERVICE_FILE_
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
......
......@@ -35,7 +35,7 @@ static int CreateFile(ServiceFile *file)
{
INIT_CHECK(file != NULL && file->fileName != NULL, return -1);
char path[PATH_MAX] = {0};
if (realpath(file->fileName, path) == NULL ) {
if (realpath(file->fileName, path) == NULL) {
INIT_LOGE("Failed realpath err=%d", errno);
}
INIT_LOGI("File path =%s . file flags =%d, file perm =%u ", path, file->flags, file->perm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册