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

Commit 88a69ded authored by Luis A. Lozano's avatar Luis A. Lozano
Browse files

Clean up possible null dereference warning.

Added a runtime check for the value of the pointer.

Bug: b/27101951
Test: verified warnings are gone.
Change-Id: Ia1004ca6fdc0937450a72d680c02a79aab22a739
parent 4ddce844
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -148,6 +148,7 @@ void CacheTracker::loadItemsFrom(const std::string& path) {
        }

        // Bubble up modified time to parent
        CHECK(p != nullptr);
        switch (p->fts_info) {
        case FTS_DP:
        case FTS_DEFAULT: