summaryrefslogtreecommitdiffstats
path: root/once.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-17 23:42:28 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-17 23:42:28 +0000
commit30562d7cba51a9879489ce88840c5f67ff873026 (patch)
treed9184295ec5310bab0e81c1caae463fec9e136b2 /once.c
parentbef6322859a5dc01e35d884de7afd2eabb1d9e4d (diff)
basic threading model
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@27 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
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 */