diff --git a/lmkd.c b/lmkd.c index 74454de..3545400 100644 --- a/lmkd.c +++ b/lmkd.c @@ -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