From ff08b8db55f70d79a7f867acf4391d133a649878 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:10:52 +0000 Subject: [PATCH] dup_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/dup_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/kits/js/src/mod_fs/properties/dup_core.cpp b/interfaces/kits/js/src/mod_fs/properties/dup_core.cpp index 716205149..7370bf8ab 100644 --- a/interfaces/kits/js/src/mod_fs/properties/dup_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/dup_core.cpp @@ -43,6 +43,7 @@ FsResult DupCore::DoDup(const int32_t &fd) if (!ValidFd(fd)) { return FsResult::Error(EINVAL); } + int dstFd = dup(fd); if (dstFd < 0) { HILOGE("Failed to dup fd, errno: %{public}d", errno); -- Gitee