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

Commit 6736db52 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "TimeCheck: fix use of uninitialized variable"

parents 8e733cad 16fd2c62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,6 @@ void TimeCheck::TimeCheckThread::stopMonitoring(nsecs_t endTimeNs) {
bool TimeCheck::TimeCheckThread::threadLoop()
{
    status_t status = TIMED_OUT;
    const char *tag;
    {
        AutoMutex _l(mMutex);

@@ -109,6 +108,7 @@ bool TimeCheck::TimeCheckThread::threadLoop()
        }

        nsecs_t endTimeNs = INT64_MAX;
        const char *tag = "<unspecified>";
        // KeyedVector mMonitorRequests is ordered so take first entry as next timeout
        if (mMonitorRequests.size() != 0) {
            endTimeNs = mMonitorRequests.keyAt(0);