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

Commit fe46a177 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Initialize uninitialized member in BatteryService" into udc-dev

parents 9111edc2 afbf2ae6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@
namespace android {
// ---------------------------------------------------------------------------

BatteryService::BatteryService() : mBatteryStatService(nullptr) {
}
BatteryService::BatteryService()
    : mBatteryStatService(nullptr), mLastWakeupSensorEventReportedMs(0) {}

bool BatteryService::addSensor(uid_t uid, int handle) {
    Mutex::Autolock _l(mActivationsLock);