diff options
author | Fred Fish <fnf@specifix.com> | 1996-07-13 01:12:11 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-07-13 01:12:11 +0000 |
commit | c0e6ae2e2e996bda783d6464b880e235c71727b8 (patch) | |
tree | 1a9d6e6fd86b76f275a678120207120339760b17 /gdb/objfiles.c | |
parent | 10c9620d4e99fd04a637edbcbe9934c4672758b6 (diff) | |
download | gdb-c0e6ae2e2e996bda783d6464b880e235c71727b8.zip gdb-c0e6ae2e2e996bda783d6464b880e235c71727b8.tar.gz gdb-c0e6ae2e2e996bda783d6464b880e235c71727b8.tar.bz2 |
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
a NULL pointer, not a -1.
Fix oops from a previous checkin.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 85f35cb..ceea859 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 != -1) + if (mapto != NULL) { /* To avoid reusing the freshly created mapping file, at the address selected by mmap, we must truncate it before trying |