Fix thinko in previous patch
This commit is contained in:
parent
b5dbae2826
commit
0a4d0a494e
|
@ -898,7 +898,7 @@ map_to_file (fd)
|
|||
{
|
||||
/* This is a freshly created mapping file. */
|
||||
mapto = (CORE_ADDR) mmalloc_findbase (20 * 1024 * 1024);
|
||||
if (mapto != NULL)
|
||||
if (mapto != 0)
|
||||
{
|
||||
/* To avoid reusing the freshly created mapping file, at the
|
||||
address selected by mmap, we must truncate it before trying
|
||||
|
|
Loading…
Reference in New Issue