* objfiles.c (map_to_file): Error return from mmalloc_findbase is

a NULL pointer, not a -1.
Fix oops from a previous checkin.
This commit is contained in:
Fred Fish 1996-07-13 01:12:11 +00:00
parent 10c9620d4e
commit c0e6ae2e2e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
a NULL pointer, not a -1.
Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
* i386-tdep.c (set_assembly_language_command): New routine to

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 != -1)
if (mapto != NULL)
{
/* To avoid reusing the freshly created mapping file, at the
address selected by mmap, we must truncate it before trying