* common/buffer.c (buffer_grow): ARI fix: Remove unneeded

call to abort.
This commit is contained in:
Pierre Muller 2012-05-22 15:55:30 +00:00
parent e4de50d447
commit 8bea7ed1e0
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
* common/buffer.c (buffer_grow): ARI fix: Remove unneeded
call to abort.
2012-05-22 Pedro Alves <palves@redhat.com> 2012-05-22 Pedro Alves <palves@redhat.com>
* target.h (store_waitstatus): Move declaration ... * target.h (store_waitstatus): Move declaration ...

View File

@ -47,8 +47,6 @@ buffer_grow (struct buffer *buffer, const char *data, size_t size)
while (buffer->used_size + size > new_buffer_size) while (buffer->used_size + size > new_buffer_size)
new_buffer_size *= 2; new_buffer_size *= 2;
new_buffer = xrealloc (buffer->buffer, new_buffer_size); new_buffer = xrealloc (buffer->buffer, new_buffer_size);
if (!new_buffer)
abort ();
memcpy (new_buffer + buffer->used_size, data, size); memcpy (new_buffer + buffer->used_size, data, size);
buffer->buffer = new_buffer; buffer->buffer = new_buffer;
buffer->buffer_size = new_buffer_size; buffer->buffer_size = new_buffer_size;