aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-07-13 04:50:40 +0000
committerFred Fish <fnf@specifix.com>1996-07-13 04:50:40 +0000
commit0a4d0a494e107f49a7aa157628d204b87a984f3b (patch)
tree3063e7add6640abe91aacc4d83b0f3253ff9f1d6
parentb5dbae2826762fbd5c9d8748a0233304dea07975 (diff)
downloadgdb-0a4d0a494e107f49a7aa157628d204b87a984f3b.zip
gdb-0a4d0a494e107f49a7aa157628d204b87a984f3b.tar.gz
gdb-0a4d0a494e107f49a7aa157628d204b87a984f3b.tar.bz2
Fix thinko in previous patch
-rw-r--r--gdb/objfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ceea859..f31bd38 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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