aboutsummaryrefslogtreecommitdiffstats
path: root/src/ralloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index db3638a54e6..2e4823dc6c1 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -1204,7 +1204,12 @@ r_alloc_reset_variable (POINTER *old, POINTER *new)
1204void 1204void
1205r_alloc_inhibit_buffer_relocation (int inhibit) 1205r_alloc_inhibit_buffer_relocation (int inhibit)
1206{ 1206{
1207 use_relocatable_buffers = !inhibit; 1207 if (use_relocatable_buffers < 0)
1208 use_relocatable_buffers = 0;
1209 if (inhibit)
1210 use_relocatable_buffers++;
1211 else if (use_relocatable_buffers > 0)
1212 use_relocatable_buffers--;
1208} 1213}
1209 1214
1210 1215