diff --git a/interfaces/kits/js/src/mod_fileio/properties/open_v9.cpp b/interfaces/kits/js/src/mod_fileio/properties/open_v9.cpp index 46727c7e565b9da9b5ffdd6f9fa02c4be61810e9..78bbbf04e914827ff568893420d210d0750aff73 100644 --- a/interfaces/kits/js/src/mod_fileio/properties/open_v9.cpp +++ b/interfaces/kits/js/src/mod_fileio/properties/open_v9.cpp @@ -64,7 +64,7 @@ static NVal InstantiateFile(napi_env env, int fd, string path) UniError(EIO).ThrowErr(env); return NVal(); } - auto fdg = make_unique(fd); + auto fdg = make_unique(fd, false); rafEntity->fd_.swap(fdg); rafEntity->path_ = path; rafEntity->uri_ = "";