From 4d1df1f82ed009f22633044cb8781ecebe403c3a Mon Sep 17 00:00:00 2001 From: wangpggg Date: Mon, 20 Jan 2025 16:31:05 +0800 Subject: [PATCH] init var Signed-off-by: wangpeng --- frameworks/native/backup_ext/src/ext_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/backup_ext/src/ext_extension.cpp b/frameworks/native/backup_ext/src/ext_extension.cpp index a5dd1cfd3..1119285af 100644 --- a/frameworks/native/backup_ext/src/ext_extension.cpp +++ b/frameworks/native/backup_ext/src/ext_extension.cpp @@ -1004,7 +1004,7 @@ void BackupExtExtension::AsyncTaskBackup(const string config) if (!ptr->StopExtTimer()) { throw BError(BError::Codes::EXT_TIMER_ERROR, "Failed to stop extTimer"); } - int64_t totalSize; + int64_t totalSize = 0; TarMap bigFileInfo; map smallFiles; BJsonCachedEntity cachedEntity(config); -- Gitee