Error checking...

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1195 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2005-08-03 23:07:09 +00:00
parent c43ca67df6
commit 0378f937bb
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ void PRAddressableFlush(progfuncs_t *progfuncs, int totalammount)
#else
free(addressablehunk);
addressablehunk = malloc(totalammount); //linux will allocate-on-use anyway, which is handy.
if (addressablehunk == 0)
Sys_Error("Out of memory\n");
// memset(addressablehunk, 0xff, totalammount);
#endif
addressablesize = totalammount;