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

Commit a9dab511 authored by Ed Coyne's avatar Ed Coyne
Browse files

Fix check for null at wrong level of indirection.

Bug: 76146267
Test: builds
Change-Id: I6f7a7c209585e24c3e7bde964b902c3a1567936a
parent 01e31488
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ void BootAction::shutdown() {

bool BootAction::loadSymbol(const char* symbol, void** loaded) {
    *loaded = dlsym(mLibHandle, symbol);
    if (loaded == nullptr) {
    if (*loaded == nullptr) {
        ALOGE("Unable to load symbol : %s :: %s", symbol, dlerror());
        return false;
    }