From 21a843eddee0181a1bed3c0b221e96eb0c1e0961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?f=E6=88=BF=E8=8A=B7=E4=BB=AA?= Date: Thu, 7 Aug 2025 09:12:40 +0800 Subject: [PATCH] callback bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: f房芷仪 --- interfaces/kits/js/cloudfilesync/cloud_sync_napi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/js/cloudfilesync/cloud_sync_napi.h b/interfaces/kits/js/cloudfilesync/cloud_sync_napi.h index 6df585d37..ab676c27b 100644 --- a/interfaces/kits/js/cloudfilesync/cloud_sync_napi.h +++ b/interfaces/kits/js/cloudfilesync/cloud_sync_napi.h @@ -83,7 +83,7 @@ public: ~CloudSyncNapi() = default; protected: - static inline std::shared_ptr callback_; + static inline std::shared_ptr callback_{nullptr}; private: static bool CheckRef(napi_env env, napi_ref ref, ChangeListenerNapi &listObj, const std::string &uri); -- Gitee