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

Commit 048718ea authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libaudiohal: fix wrong pointer check in createPreferredImpl loop"

parents aa074bf5 62989b15
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)) {