commit | 88a69ded4ba00393e3865ccdfe65f964e58467b6 | [log] [tgz] |
---|---|---|
author | Luis A. Lozano <llozano@google.com> | Tue Jun 06 16:59:37 2017 -0700 |
committer | Luis A. Lozano <llozano@google.com> | Tue Jun 06 16:59:37 2017 -0700 |
tree | ebd4b93c274884ed4db9d21487c39521400346e6 | |
parent | 4ddce844567e0b7ccb8a50706df8cddaba09ce86 [diff] [blame] |
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
diff --git a/cmds/installd/CacheTracker.cpp b/cmds/installd/CacheTracker.cpp index e293948..3eb39b9 100644 --- a/cmds/installd/CacheTracker.cpp +++ b/cmds/installd/CacheTracker.cpp
@@ -148,6 +148,7 @@ } // Bubble up modified time to parent + CHECK(p != nullptr); switch (p->fts_info) { case FTS_DP: case FTS_DEFAULT: