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

Commit 4caeb7e5 authored by Michael Spang's avatar Michael Spang Committed by android-build-merger
Browse files

Merge "Fix stack use-after-scope in InputReader" into oc-mr1-dev

am: 9e6c95de

Change-Id: Ia51f56bca86f5e04cef4151ca2692bcf49e25aeb
parents f797decf 9e6c95de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ bool InputReaderConfiguration::getDisplayViewport(ViewportType viewportType,
        const String8* uniqueDisplayId, DisplayViewport* outViewport) const {
    const DisplayViewport* viewport = NULL;
    if (viewportType == ViewportType::VIEWPORT_VIRTUAL && uniqueDisplayId != NULL) {
        for (DisplayViewport currentViewport : mVirtualDisplays) {
        for (const DisplayViewport& currentViewport : mVirtualDisplays) {
            if (currentViewport.uniqueId == *uniqueDisplayId) {
                viewport = &currentViewport;
                break;