Fix thinko in previous patch

This commit is contained in:
Fred Fish
1996-07-13 04:50:40 +00:00
parent b5dbae2826
commit 0a4d0a494e

View File

@@ -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