summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorGaurav Batra <gbatra@nvidia.com>2014-11-03 21:18:31 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-03 21:18:31 +0000
commit8d55aa31abe6d3db7693c6a49d9471f06c586c41 (patch)
tree3738e599a1c8e87d362ed31cc639df3f9f8592a5 /camera
parent21a9d81beed3a90a4017af3457557af5c11105e8 (diff)
parent0c629a3857c31bee6fa39ba7a9a8cbcabeb383fd (diff)
downloadframeworks_av-8d55aa31abe6d3db7693c6a49d9471f06c586c41.zip
frameworks_av-8d55aa31abe6d3db7693c6a49d9471f06c586c41.tar.gz
frameworks_av-8d55aa31abe6d3db7693c6a49d9471f06c586c41.tar.bz2
am 0c629a38: camera: fix vendortags section malloc failure
* commit '0c629a3857c31bee6fa39ba7a9a8cbcabeb383fd': camera: fix vendortags section malloc failure
Diffstat (limited to 'camera')
-rw-r--r--camera/VendorTagDescriptor.cpp2
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*>(&sectionCount))) != OK) {
ALOGE("%s: could not read section count for.", __FUNCTION__);