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

Commit 7937f18b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libaudiohal: fix wrong pointer check in createPreferredImpl loop" am: 048718ea

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1753841

Change-Id: Ibcd6be8440f70952d3df4dc74c9b7263a60a0088
parents 1986c6a6 048718ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ bool hasHalService(const std::string& package, const std::string& version,
}  // namespace

void* createPreferredImpl(const std::string& package, const std::string& interface) {
    for (auto version = detail::sAudioHALVersions; version != nullptr; ++version) {
    for (auto version = detail::sAudioHALVersions; *version != nullptr; ++version) {
        void* rawInterface = nullptr;
        if (hasHalService(package, *version, interface)
                && createHalService(*version, interface, &rawInterface)) {