diff options
Diffstat (limited to 'src/pulsecore/once.c')
-rw-r--r-- | src/pulsecore/once.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pulsecore/once.c b/src/pulsecore/once.c index 05a3ad2c..4e509e0c 100644 --- a/src/pulsecore/once.c +++ b/src/pulsecore/once.c @@ -29,8 +29,6 @@ #include "once.h" pa_bool_t pa_once_begin(pa_once *control) { - pa_mutex *m; - pa_assert(control); if (pa_atomic_load(&control->done)) @@ -43,6 +41,7 @@ pa_bool_t pa_once_begin(pa_once *control) { * executed by us. Hence the awkward locking. */ for (;;) { + pa_mutex *m; if ((m = pa_atomic_ptr_load(&control->mutex))) { |