From 64dc3e48c40b71738bb0e8ed6f602c2fb6250b41 Mon Sep 17 00:00:00 2001 From: wangpggg Date: Fri, 17 Jan 2025 18:12:53 +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 616cb5fcf..a45e61d8a 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