diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-10 15:36:25 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-10 15:36:25 +0000 |
commit | d8b5f80e5174a688edca11b669254cd598f51c2b (patch) | |
tree | 41bc16434291d8097a58999ccd1fba1a61771a80 /gcc/mips-tdump.c | |
parent | 62c74046d37945f41c089a28c2caf8f26c14a7e1 (diff) |
* mips-tdump.c (read_seek): Call xmalloc, not malloc.
* mips-tfile.c: Don't #undef rindex; not used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40366 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tdump.c')
-rw-r--r-- | gcc/mips-tdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index 613606f2f2b..d56b6d6dc88 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -291,7 +291,7 @@ read_seek (ptr, size, offset, context) if (size == 0) /* nothing to read */ return ptr; - if ((ptr == (PTR_T) 0 && (ptr = malloc (size)) == (PTR_T) 0) + if ((ptr == (PTR_T) 0 && (ptr = xmalloc (size)) == (PTR_T) 0) || (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1) || (read_size = read (tfile_fd, ptr, size)) < 0) { |