From ee7a4280bdb0488664000111d6a92eebf9bfb07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E5=86=AC=E6=B4=8B?= Date: Thu, 31 Jul 2025 03:29:25 +0000 Subject: [PATCH] truncate_core.cpp add empty lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 顾冬洋 --- interfaces/kits/js/src/mod_fs/properties/truncate_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/kits/js/src/mod_fs/properties/truncate_core.cpp b/interfaces/kits/js/src/mod_fs/properties/truncate_core.cpp index 66b68f185..42e19b8b0 100644 --- a/interfaces/kits/js/src/mod_fs/properties/truncate_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/truncate_core.cpp @@ -45,6 +45,7 @@ static int Truncate(FileInfo &fileInfo, int64_t truncateLen) HILOGE("Failed to request heap memory."); return ENOMEM; } + int ret = uv_fs_open( nullptr, openReq.get(), fileInfo.path.get(), O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, nullptr); if (ret < 0) { -- Gitee