Fix msm8916-wcd-digital ASoC DAPM teardown crash after notification audio
This commit is contained in:
1 parent
06d991d4fa
commit
b9e7c6847b
13 files changed
+15
-119
No files matched your search
@@ -1345,6 +1345,7 @@ inline std::vector<CallLogItem> loadCallLogFromFile(const ContactBook& book,
|
||||
};
|
||||
|
||||
while (std::getline(lf, line)) {
|
||||
std::erase(line, '\0');
|
||||
if (line.empty()) continue;
|
||||
size_t t1 = line.find('\t');
|
||||
if (t1 == std::string::npos) continue;
|
||||
@@ -2128,6 +2129,7 @@ inline std::vector<SmsMessage> loadSmsThreadMessages(
|
||||
};
|
||||
|
||||
while (std::getline(in, line)) {
|
||||
std::erase(line, '\0');
|
||||
if (!line.empty() && line.back() == '\r') {
|
||||
line.pop_back();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user