summaryrefslogtreecommitdiff
path: root/smalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'smalloc.c')
-rw-r--r--smalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/smalloc.c b/smalloc.c
index 9a7c25bf..85da7811 100644
--- a/smalloc.c
+++ b/smalloc.c
@@ -268,11 +268,12 @@ out_close:
void sinit(void)
{
- int ret = add_pool(&mp[0]);
+ int ret;
#ifdef MP_SAFE
lock = fio_mutex_rw_init();
#endif
+ ret = add_pool(&mp[0]);
assert(!ret);
}