about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-01-07 15:39:02 +0100
committerptitSeb <sebastien.chev@gmail.com>2025-01-07 15:39:02 +0100
commitc772d1ab49a10f3d905fa881c2aaf69a177ed1a3 (patch)
tree3008bfa39fcce0e257e13b5e96114a9d2bc92e9a /src
parent1af7c15801095f76adfc9356ee703cf1693da34c (diff)
downloadbox64-c772d1ab49a10f3d905fa881c2aaf69a177ed1a3.tar.gz
box64-c772d1ab49a10f3d905fa881c2aaf69a177ed1a3.zip
Small fix to program break tracking
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 43dd76f5..7f249e00 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -2015,10 +2015,10 @@ void reserveHighMem()
 void init_custommem_helper(box64context_t* ctx)
 {
     (void)ctx;
-    cur_brk = dlsym(RTLD_NEXT, "__curbrk");
     if(inited) // already initialized
         return;
     inited = 1;
+    cur_brk = dlsym(RTLD_NEXT, "__curbrk");
     blockstree = rbtree_init("blockstree");
     // if there is some blocks already
     if(n_blocks)