Debug: Initialize local to false
Ensure that a later read always sees a well-defined value. Bug: 31943543 Test: m Change-Id: I654f7896bf1c07a67911196f8906007955f00b85
This commit is contained in:
@@ -430,6 +430,8 @@ static void load_maps(int pid, stats_t* stats, bool* foundSwapPss)
|
||||
char tmp[128];
|
||||
FILE *fp;
|
||||
|
||||
*foundSwapPss = false;
|
||||
|
||||
sprintf(tmp, "/proc/%d/smaps", pid);
|
||||
fp = fopen(tmp, "r");
|
||||
if (fp == 0) return;
|
||||
|
||||
Reference in New Issue
Block a user