diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/i_system.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i_system.c b/src/i_system.c index 07218142..714f63cc 100644 --- a/src/i_system.c +++ b/src/i_system.c @@ -95,6 +95,11 @@ byte *I_ZoneBase (int *size) *size = I_GetHeapSize(); zonemem = malloc(*size); + + if (zonemem == NULL) + { + I_Error("Failed to allocate %i bytes for zone memory", *size); + } printf("zone memory: %p, %x allocated for zone\n", zonemem, *size); |