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

Commit 9825af9e authored by Michael Lentine's avatar Michael Lentine Committed by Android Git Automerger
Browse files

am 98a51de1: Merge "Fix native_handle_create to check if malloc fails" into...

am 98a51de1: Merge "Fix native_handle_create to check if malloc fails" into lmp-mr1-dev automerge: b5422854

* commit '98a51de1':
  Fix native_handle_create to check if malloc fails
parents fdfde83c 98a51de1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -30,9 +30,11 @@ native_handle_t* native_handle_create(int numFds, int numInts)
    native_handle_t* h = malloc(
            sizeof(native_handle_t) + sizeof(int)*(numFds+numInts));

    if (h) {
        h->version = sizeof(native_handle_t);
        h->numFds = numFds;
        h->numInts = numInts;
    }
    return h;
}