summaryrefslogtreecommitdiffstats
path: root/once.c
diff options
context:
space:
mode:
Diffstat (limited to 'once.c')
-rw-r--r--once.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/once.c b/once.c
index de41be3..5dc9764 100644
--- a/once.c
+++ b/once.c
@@ -39,7 +39,7 @@ int sa_once(sa_once_t *control, sa_once_func_t func) {
}
sa_mutex_unlock(global_mutex);
- if (!r)
+ if (r)
return -1;
/* Execute function */