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

Commit ce71149c authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Debug: Initialize local to false

Ensure that a later read always sees a well-defined value.

Bug: 31943543
Test: m
Change-Id: I654f7896bf1c07a67911196f8906007955f00b85
parent 25b64aad
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;