Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89fe376d authored by Greg Kaiser's avatar Greg Kaiser Committed by Yurii Zubrytskyi
Browse files

[adb data server] Initialize variable

servingComplete_ was left uninitialized and only set to 'true'
in the code.  We initialize it to the 'false' state to avoid
uninitialized references in SkipToRequest().

Bug: 150865433
Test: TreeHugger
Change-Id: Ia8a4d7135c432eb657543c5498fc9dbe8f4718b6
Merged-In: Ia8a4d7135c432eb657543c5498fc9dbe8f4718b6
parent 6b9b468d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -264,7 +264,7 @@ class IncrementalServer {
    char* pendingBlocks_ = nullptr;
    char* pendingBlocks_ = nullptr;


    // True when client notifies that all the data has been received
    // True when client notifies that all the data has been received
    bool servingComplete_;
    bool servingComplete_ = false;
};
};


bool IncrementalServer::SkipToRequest(void* buffer, size_t* size, bool blocking) {
bool IncrementalServer::SkipToRequest(void* buffer, size_t* size, bool blocking) {