From 12051a0937af1d2b587f935ef01c4e8bf0112170 Mon Sep 17 00:00:00 2001 From: Yurii Zubrytskyi Date: Thu, 20 Feb 2020 16:03:10 -0800 Subject: [PATCH] Initialize |sentBlocksCount| It happened to always be 0 during all tests. Test: manual Change-Id: I2f5089096a8ecda2ec52756199412c7d43f6903c --- adb/client/incremental_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/client/incremental_server.cpp b/adb/client/incremental_server.cpp index 90376727f..726533d2a 100644 --- a/adb/client/incremental_server.cpp +++ b/adb/client/incremental_server.cpp @@ -146,7 +146,7 @@ class File { const unique_fd& RawFd() const { return fd_; } std::vector sentBlocks; - NumBlocks sentBlocksCount; + NumBlocks sentBlocksCount = 0; const char* const filepath; const FileId id;