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

Bug: 72177881
Test: Tested manually
Change-Id: Icbf948dd0e40eaa6c660d55f5cd72182436da086
diff --git a/lmkd/lmkd.c b/lmkd/lmkd.c
index 74454de..3545400 100644
--- a/lmkd/lmkd.c
+++ b/lmkd/lmkd.c
@@ -605,7 +605,7 @@
    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 @@
     int r;
 
 #ifdef LMKD_LOG_STATS
-    struct memory_stat mem_st;
+    struct memory_stat mem_st = {};
     int memory_stat_parse_result = -1;
 #endif