From 4d5632912a0e6ef6c6e2823526ee027f18ef04d3 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 6 Sep 2023 23:32:49 +0900 Subject: [PATCH] Initialize variable before use (#2302) clang-analyzer found a path where this could be used without initialization. --- src/fdcache_entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fdcache_entity.cpp b/src/fdcache_entity.cpp index 09d0487..2390c21 100644 --- a/src/fdcache_entity.cpp +++ b/src/fdcache_entity.cpp @@ -1775,7 +1775,7 @@ int FdEntity::RowFlushStreamMultipart(PseudoFdInfo* pseudo_obj, const char* tpat if(-1 == physical_fd || !pseudo_obj){ return -EBADF; } - int result; + int result = 0; if(pagelist.Size() <= S3fsCurl::GetMultipartSize()){ //