From: Fred Fish Date: Sat, 13 Jul 1996 04:50:40 +0000 (+0000) Subject: Fix thinko in previous patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a4d0a494e107f49a7aa157628d204b87a984f3b;p=binutils-gdb.git Fix thinko in previous patch --- diff --git a/gdb/objfiles.c b/gdb/objfiles.c index ceea859a06d..f31bd385669 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