Fixed an error left over in the previous commit.

This commit is contained in:
Pietro Gagliardi 2015-05-03 19:58:12 -04:00
parent fd4c559e86
commit 7086373807
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ void *uiAlloc(size_t size)
out = malloc(size); out = malloc(size);
if (out == NULL) { if (out == NULL) {
fprintf(stderr, "memory exhausted in uiAlloc() allocating %s\n", type); fprintf(stderr, "memory exhausted in uiAlloc()\n");
abort(); abort();
} }
memset(out, 0, size); memset(out, 0, size);
@ -23,7 +23,7 @@ void *uiRealloc(void *p, size_t size)
return uiAlloc(size); return uiAlloc(size);
out = realloc(p, size); out = realloc(p, size);
if (out == NULL) { if (out == NULL) {
fprintf(stderr, "memory exhausted in uiRealloc() reallocating %s\n", type); fprintf(stderr, "memory exhausted in uiRealloc()\n");
abort(); abort();
} }
// TODO zero the extra memory // TODO zero the extra memory