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

Commit ff8a7073 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android (Google) Code Review
Browse files

Merge "IMediaPlayer.cpp: make sure structures are initialized to 0"

parents 6d5a0de5 b73b826c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -653,6 +653,7 @@ status_t BnMediaPlayer::onTransact(
            CHECK_INTERFACE(IMediaPlayer, data, reply);

            struct sockaddr_in endpoint;
            memset(&endpoint, 0, sizeof(endpoint));
            int amt = data.readInt32();
            if (amt == sizeof(endpoint)) {
                data.read(&endpoint, sizeof(struct sockaddr_in));
@@ -667,6 +668,7 @@ status_t BnMediaPlayer::onTransact(
            CHECK_INTERFACE(IMediaPlayer, data, reply);

            struct sockaddr_in endpoint;
            memset(&endpoint, 0, sizeof(endpoint));
            status_t res = getRetransmitEndpoint(&endpoint);

            reply->writeInt32(res);