summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorChloe M. <chloe@mirocom.org>2026-05-23 10:51:06 +0000
committerChloe M. <chloe@mirocom.org>2026-05-23 10:51:06 +0000
commitd5f1f2a22fc1c35e93e1dfde58d08e2b3827192e (patch)
treeeec50882db88291085c85b18fa5fd483abe94a2e /core
parentf99c1d678f3310a3679b24e518355fbb00211273 (diff)
core: ptrbox: Return allocated entry
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'core')
-rw-r--r--core/ptrbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ptrbox.c b/core/ptrbox.c
index 2bdaa9c..b83ea8a 100644
--- a/core/ptrbox.c
+++ b/core/ptrbox.c
@@ -86,7 +86,7 @@ ptrbox_alloc(struct ptrbox *ptrbox, size_t len)
return NULL;
}
- return 0;
+ return p;
}
char *