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

Commit 25e18c93 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

EGL BlobCache: Initialize mMultifileCleanupPending

This field was being used uninitialized, so we set it in the
constructor to have consistent behavior.

Test: None
Bug: b/246966894
Change-Id: I7fde6dcb3783ed980f19993cb3438b180ee413d1
parent e893d3d9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -68,7 +68,10 @@ static EGLsizeiANDROID getBlob(const void* key, EGLsizeiANDROID keySize, void* v
// egl_cache_t definition
//
egl_cache_t::egl_cache_t()
      : mInitialized(false), mMultifileMode(true), mCacheByteLimit(maxTotalSize) {}
      : mInitialized(false),
        mMultifileMode(true),
        mCacheByteLimit(maxTotalSize),
        mMultifileCleanupPending(false) {}

egl_cache_t::~egl_cache_t() {}