summaryrefslogtreecommitdiffstats
path: root/media/libmedia
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-08-27 22:22:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-27 22:22:33 +0000
commit608c349d611e03e0143c23c3f77ddc62b137e354 (patch)
tree15163ccb4b85047afcf732cfd81840854c2790f7 /media/libmedia
parentf67f894fead9065dcffda03a127cee7d746c9226 (diff)
parent4e861bf5d43eae00ae4cb8727c5a408c3728288b (diff)
downloadframeworks_av-608c349d611e03e0143c23c3f77ddc62b137e354.zip
frameworks_av-608c349d611e03e0143c23c3f77ddc62b137e354.tar.gz
frameworks_av-608c349d611e03e0143c23c3f77ddc62b137e354.tar.bz2
am 4e861bf5: am e1dc15ec: am 762c7139: am b04cfdf5: am d437c777: am 0981df6e: IMediaPlayer.cpp: make sure structures are initialized to 0
* commit '4e861bf5d43eae00ae4cb8727c5a408c3728288b': IMediaPlayer.cpp: make sure structures are initialized to 0
Diffstat (limited to 'media/libmedia')
-rw-r--r--media/libmedia/IMediaPlayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libmedia/IMediaPlayer.cpp b/media/libmedia/IMediaPlayer.cpp
index 7f3e5cc..fb26b87 100644
--- a/media/libmedia/IMediaPlayer.cpp
+++ b/media/libmedia/IMediaPlayer.cpp
@@ -525,6 +525,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));
@@ -539,6 +540,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);