From 30562d7cba51a9879489ce88840c5f67ff873026 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 May 2007 23:42:28 +0000 Subject: basic threading model git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@27 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce --- once.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'once.c') 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 */ -- cgit