mirror of
https://gitee.com/openharmony/commonlibrary_memory_utils
synced 2024-11-23 15:30:32 +00:00
update libdmabufheap/src/dmabuf_alloc.c.
Signed-off-by: 李月关 <liyueguan@huawei.com>
This commit is contained in:
parent
2de3926d9a
commit
af10e27520
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user