diff options
author | Gaurav Batra <gbatra@nvidia.com> | 2014-11-03 23:48:36 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2014-11-03 23:48:36 +0000 |
commit | 588fac9af56f778652265b24e57e3976fc7b0311 (patch) | |
tree | 7d5ddd9c81155bcb843968e8567548da854d5690 /camera | |
parent | bc49cae3bb9587422be49a24729b894304aed661 (diff) | |
parent | 8d55aa31abe6d3db7693c6a49d9471f06c586c41 (diff) | |
download | frameworks_av-588fac9af56f778652265b24e57e3976fc7b0311.zip frameworks_av-588fac9af56f778652265b24e57e3976fc7b0311.tar.gz frameworks_av-588fac9af56f778652265b24e57e3976fc7b0311.tar.bz2 |
am 0c629a38: camera: fix vendortags section malloc failure
automerge: 8d55aa3
* commit '8d55aa31abe6d3db7693c6a49d9471f06c586c41':
camera: fix vendortags section malloc failure
Diffstat (limited to 'camera')
-rw-r--r-- | camera/VendorTagDescriptor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/VendorTagDescriptor.cpp b/camera/VendorTagDescriptor.cpp index 0dda6b6..dce313a 100644 --- a/camera/VendorTagDescriptor.cpp +++ b/camera/VendorTagDescriptor.cpp @@ -206,7 +206,7 @@ status_t VendorTagDescriptor::createFromParcel(const Parcel* parcel, return res; } - size_t sectionCount; + size_t sectionCount = 0; if (tagCount > 0) { if ((res = parcel->readInt32(reinterpret_cast<int32_t*>(§ionCount))) != OK) { ALOGE("%s: could not read section count for.", __FUNCTION__); |