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

Commit e43d0d01 authored by zijunzhao's avatar zijunzhao Committed by Zijun Zhao
Browse files

Fix -Wnullable-to-nonnull-conversion error

Fix the build errors like https://android-build.googleplex.com/builds/pending/P56005836/aosp_arm64-userdebug/latest/view/logs/build.log

Bugs: b/245972273
Test: mm -j
Change-Id: I8edeace5afddc2cf6783899c889a3f2a542156a3
parent 855810c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ MemoryHeapBase::MemoryHeapBase(size_t size, uint32_t flags, char const * name)
        if (SEAL_FLAGS && (fcntl(fd, F_ADD_SEALS, SEAL_FLAGS) == -1)) {
            ALOGE("MemoryHeapBase: MemFD %s sealing with flags %x failed with error  %s", name,
                  SEAL_FLAGS, strerror(errno));
            munmap(mBase, mSize);
            if (mNeedUnmap) munmap(mBase, mSize);
            mBase = nullptr;
            mSize = 0;
            close(fd);