diff --git a/unit-test-coverage/ut-stubs/src/PCS_stdlib_handlers.c b/unit-test-coverage/ut-stubs/src/PCS_stdlib_handlers.c index 381b0b4b..7a166ff9 100644 --- a/unit-test-coverage/ut-stubs/src/PCS_stdlib_handlers.c +++ b/unit-test-coverage/ut-stubs/src/PCS_stdlib_handlers.c @@ -94,7 +94,7 @@ void UT_DefaultHandler_PCS_malloc(void *UserObj, UT_EntryKey_t FuncKey, const UT Rec = (struct MPOOL_REC *)PoolStart; NextBlock = PoolStart + MPOOL_ALIGN; PoolSize -= MPOOL_ALIGN; - if (CallCnt == 0) + if (CallCnt == 1) { Rec->Magic = MPOOL_START_SIGNATURE; Rec->Size = 0;