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

Commit 97640b93 authored by Christoffer Gurell's avatar Christoffer Gurell
Browse files

Fix obvious typo bug in egl.cpp

can (and does sometimes) lead to accessing array with -1 as index
parent 17a8f690
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -692,7 +692,7 @@ static int isAttributeMatching(int i, EGLint attr, EGLint val)
                gConfigManagement,
                0, NELEM(gConfigManagement)-1,
                attr);
        if (index >= 0) {
        if (cfgMgtIndex >= 0) {
            bool match = gConfigManagement[cfgMgtIndex].match(
                    val, configFound[index].value);
            if (match) {