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:
Andreas Gampe
2016-10-04 18:06:42 -07:00
parent 25b64aad01
commit ce71149cc3

View File

@@ -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;