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

Commit 77cdc4ce authored by Lee Shombert's avatar Lee Shombert
Browse files

Initialize the Timer::splits pointer

This addresses a review comment: the Timer::splits field was not
initialized in the default constructor for Timer.  It is not
initialized to the null pointer.

Flag: EXEMPT bug-fix
Bug: 407584606
Test: atest
 * FrameworksServicesTests:AnrTimerTest
 * FrameworksServicesTests:com.android.server.am
 * FrameworksMockingServicesTests:com.android.server.am
Change-Id: I0ab74209b702d270db80beb59056d64669c20530
parent 710ca857
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -914,6 +914,7 @@ class AnrTimerService::Timer {
            started(0),
            timeout(0),
            extend(false),
            splits(nullptr),
            nextSplit(0),
            status(Invalid),
            scheduled(0),