diff options
author | Robert Shih <robertshih@google.com> | 2015-09-04 17:55:48 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-04 17:55:48 +0000 |
commit | 35e03636d6fa0c7c33c67e10686657849a61aff8 (patch) | |
tree | 5a047213b1a7e042096bf0b1c0f32025d82a26ed /media/libmedia/IAudioPolicyService.cpp | |
parent | 7ecf636997b812ff5ae87ea9e146707d37d1b78a (diff) | |
parent | becceb1136e7eb01db7dd865cb98a57117212879 (diff) | |
download | frameworks_av-35e03636d6fa0c7c33c67e10686657849a61aff8.zip frameworks_av-35e03636d6fa0c7c33c67e10686657849a61aff8.tar.gz frameworks_av-35e03636d6fa0c7c33c67e10686657849a61aff8.tar.bz2 |
am becceb11: am b57ffbb5: am d021f7e5: am b18c0276: am 2b63b91b: am c1e989e7: am 13ff64c2: Merge "Zero out return values in media binder calls" into klp-dev
* commit 'becceb1136e7eb01db7dd865cb98a57117212879':
Zero out return values in media binder calls
Diffstat (limited to 'media/libmedia/IAudioPolicyService.cpp')
-rw-r--r-- | media/libmedia/IAudioPolicyService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/IAudioPolicyService.cpp b/media/libmedia/IAudioPolicyService.cpp index 06ae8c0..7e6b9fc 100644 --- a/media/libmedia/IAudioPolicyService.cpp +++ b/media/libmedia/IAudioPolicyService.cpp @@ -994,7 +994,7 @@ status_t BnAudioPolicyService::onTransact( audio_stream_type_t stream = static_cast <audio_stream_type_t>(data.readInt32()); audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); - int index; + int index = 0; status_t status = getStreamVolumeIndex(stream, &index, device); reply->writeInt32(index); reply->writeInt32(static_cast <uint32_t>(status)); |