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

Commit 97837c91 authored by Stephen Hines's avatar Stephen Hines
Browse files

Fix broken assert (if input allocation is NULL).

Change-Id: If02e86eee4ec059402edd6f8c408fd89b248bc80
parent 6eb3c59c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -381,7 +381,7 @@ void rsdScriptInvokeForEach(const Context *rsc,
    mtls.zEnd = rsMax((uint32_t)1, mtls.zEnd);
    mtls.arrayEnd = rsMax((uint32_t)1, mtls.arrayEnd);

    rsAssert(ain->getType()->getDimZ() == 0);
    rsAssert(!ain || (ain->getType()->getDimZ() == 0));

    Context *mrsc = (Context *)rsc;
    Script * oldTLS = setTLS(s);