heap: fix typo in alloc(0) diagnostic message

Fixes #3501
This commit is contained in:
Christian Prochaska 2019-09-23 14:43:39 +02:00 committed by Christian Helmuth
parent 222f214341
commit 5c25e0bdb0
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ bool Heap::_unsynchronized_alloc(size_t size, void **out_addr)
bool Heap::alloc(size_t size, void **out_addr)
{
if (size == 0)
error("attempt to allocated zero-size block from heap");
error("attempt to allocate zero-size block from heap");
/* serialize access of heap functions */
Lock::Guard lock_guard(_lock);