Don't clear memory twice under OS3

This commit is contained in:
Chris Young 2016-01-21 22:39:21 +00:00
parent b29bd85274
commit f51b7780e3

View File

@ -39,10 +39,8 @@ void *ami_misc_allocvec_clear(int size, UBYTE value)
#ifdef __amigaos4__
return AllocVecTags(size, AVT_ClearWithValue, value, TAG_DONE);
#else
void *mem = AllocVec(size, MEMF_CLEAR | MEMF_ANY);
if (mem && (value != 0)) {
memset(mem, value, size);
}
void *mem = AllocVec(size, MEMF_ANY);
if (mem) memset(mem, value, size);
return mem;
#endif
}