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

Commit 92b659ba authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Fix variable name in log statement and initialize memory_stat before using it.

Bug: 72177881
Test: Tested manually
Change-Id: Icbf948dd0e40eaa6c660d55f5cd72182436da086
parent 8539d58f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -605,7 +605,7 @@ static int memory_stat_parse(struct memory_stat *mem_st, int pid, uid_t uid) {
   fp = fopen(buf, "r");

   if (fp == NULL) {
       ALOGE("%s open failed: %s", path, strerror(errno));
       ALOGE("%s open failed: %s", buf, strerror(errno));
       return -1;
   }

@@ -715,7 +715,7 @@ static int kill_one_process(struct proc* procp, int min_score_adj,
    int r;

#ifdef LMKD_LOG_STATS
    struct memory_stat mem_st;
    struct memory_stat mem_st = {};
    int memory_stat_parse_result = -1;
#endif