aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2012-05-22 15:55:30 +0000
committerPierre Muller <muller@sourceware.org>2012-05-22 15:55:30 +0000
commit8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4 (patch)
tree35eb58e1288acd813178dbf50c4e13c208587911 /gdb/common
parente4de50d4470ce6fbfce8b55af8be56b71e0889d9 (diff)
downloadgdb-8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4.zip
gdb-8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4.tar.gz
gdb-8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4.tar.bz2
* common/buffer.c (buffer_grow): ARI fix: Remove unneeded
call to abort.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/buffer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c
index 059dd68..810173b 100644
--- a/gdb/common/buffer.c
+++ b/gdb/common/buffer.c
@@ -47,8 +47,6 @@ buffer_grow (struct buffer *buffer, const char *data, size_t size)
while (buffer->used_size + size > new_buffer_size)
new_buffer_size *= 2;
new_buffer = xrealloc (buffer->buffer, new_buffer_size);
- if (!new_buffer)
- abort ();
memcpy (new_buffer + buffer->used_size, data, size);
buffer->buffer = new_buffer;
buffer->buffer_size = new_buffer_size;