update libdmabufheap/src/dmabuf_alloc.c.

Signed-off-by: 李月关 <liyueguan@huawei.com>
This commit is contained in:
李月关 2024-08-23 10:57:00 +00:00 committed by Gitee
parent 2de3926d9a
commit af10e27520
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -36,7 +36,7 @@ static bool IsHeapNameValid(const char *heapName)
return false;
}
size_t len = strlen(heapName);
if ( (len == 0) || (len > HEAP_NAME_MAX_LEN)) {
if ((len == 0) || (len > HEAP_NAME_MAX_LEN)) {
return false;
}
return true;