see if this gives a sys_error instead of a crash

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1339 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-16 04:37:24 +00:00
parent 057b64555b
commit 2d52134471
1 changed files with 2 additions and 2 deletions

View File

@ -76,10 +76,10 @@ 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
if (!addressablehunk)
Sys_Error("Out of memory\n");
addressablesize = totalammount;
}