Really fix bug #11519, by fixing the last change in ralloc.c.

src/ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
 in the logic of incrementing and decrementing the value of
 use_relocatable_buffers.
This commit is contained in:
Eli Zaretskii 2012-06-23 12:46:33 +03:00
parent 0e9e6c6abc
commit e8a022046f
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2012-06-23 Eli Zaretskii <eliz@gnu.org>
* ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
in the logic of incrementing and decrementing the value of
use_relocatable_buffers.
2012-06-23 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c [__FreeBSD__]: Fix recently-introduced typos.

View file

@ -741,7 +741,7 @@ r_alloc_sbrk (long int size)
if (! r_alloc_initialized)
r_alloc_init ();
if (! use_relocatable_buffers)
if (use_relocatable_buffers <= 0)
return (*real_morecore) (size);
if (size == 0)
@ -1142,12 +1142,12 @@ r_alloc_reset_variable (POINTER *old, POINTER *new)
void
r_alloc_inhibit_buffer_relocation (int inhibit)
{
if (use_relocatable_buffers < 0)
use_relocatable_buffers = 0;
if (use_relocatable_buffers > 1)
use_relocatable_buffers = 1;
if (inhibit)
use_relocatable_buffers++;
else if (use_relocatable_buffers > 0)
use_relocatable_buffers--;
else if (use_relocatable_buffers < 1)
use_relocatable_buffers++;
}