Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e64c61e8 authored by Sachin Mohan Gadag's avatar Sachin Mohan Gadag Committed by Shiv Maliyappanahalli
Browse files

audiohal: Fix LLVM issues

Fix Allocator sizeof operand mismatch LLVM
issue by allocating memory of size unsigned char
for each block/element.

Change-Id: I5fca5b1e4491e6cadbee092953682ab0e4bbf104
parent 7aad78d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4908,7 +4908,7 @@ unsigned char* platform_get_license(void *platform, int *size)
    }
    cal.acdb_dev_id = (uint32_t) atoi (value);
    param_len = MAX_SET_CAL_BYTE_SIZE;
    dptr = (unsigned char*) calloc(param_len, sizeof(unsigned char*));
    dptr = (unsigned char*) calloc(param_len, sizeof(unsigned char));
    if (dptr == NULL) {
        ALOGE("[%s] Memory allocation failed for length %d",__func__,param_len);
        ret = -ENOMEM;