Fix check against return value of memset() in vm_acquire_fixed

This commit is contained in:
gbeauche 2003-05-13 16:56:37 +00:00
parent f5a1a93d2c
commit 61e40b3e55

View File

@ -136,7 +136,7 @@ int vm_acquire_fixed(void * addr, size_t size)
return -1;
// Since I don't know the standard behavior of mmap(), zero-fill here
if (memset(addr, 0, size) != 0)
if (memset(addr, 0, size) != addr)
return -1;
#else
// Unsupported