mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-19 15:01:13 +00:00
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:
parent
057b64555b
commit
2d52134471
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue