Merge "HwBlob: s/malloc/calloc/" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0f5ce51f30
@@ -88,7 +88,7 @@ JHwBlob::JHwBlob(JNIEnv *env, jobject thiz, size_t size)
|
||||
mOwnsBuffer(true),
|
||||
mHandle(0) {
|
||||
if (size > 0) {
|
||||
mBuffer = malloc(size);
|
||||
mBuffer = calloc(size, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user