mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa: loop: Fix potential uninitialised result
This commit is contained in:
parent
e43324a186
commit
420c510d47
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ static int loop_wait(void *object, const struct timespec *abstime)
|
||||||
static int loop_signal(void *object, bool wait_for_accept)
|
static int loop_signal(void *object, bool wait_for_accept)
|
||||||
{
|
{
|
||||||
struct impl *impl = object;
|
struct impl *impl = object;
|
||||||
int res;
|
int res = 0;
|
||||||
if (impl->n_waiting > 0)
|
if (impl->n_waiting > 0)
|
||||||
if ((res = pthread_cond_broadcast(&impl->cond)) != 0)
|
if ((res = pthread_cond_broadcast(&impl->cond)) != 0)
|
||||||
return -res;
|
return -res;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue