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

Commit f955be99 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2785833] valgrind error in android::Layer::requestBuffer

fix uninitialized variable

Change-Id: I99e1b619ae8c88dd9d77b3abf4762f801019047e
parent b16fa651
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -160,6 +160,7 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h,
    const uint32_t hwFlags = hw.getFlags();
    const uint32_t hwFlags = hw.getFlags();
    
    
    mFormat = format;
    mFormat = format;
    mReqFormat = format;
    mWidth  = w;
    mWidth  = w;
    mHeight = h;
    mHeight = h;
    mSecure = (flags & ISurfaceComposer::eSecure) ? true : false;
    mSecure = (flags & ISurfaceComposer::eSecure) ? true : false;