From 25101b299dde374ae09b79f03a3b393b37981eda Mon Sep 17 00:00:00 2001
From: Peter Meerwald
Date: Wed, 18 Dec 2013 17:27:47 +0100
Subject: [PATCH] core: Fix check for io->output_event in enable_events()
copy-pase error discovered by coverity
Signed-off-by: Peter Meerwald
---
src/pulsecore/iochannel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pulsecore/iochannel.c b/src/pulsecore/iochannel.c
index ca0f3502..dce67340 100644
--- a/src/pulsecore/iochannel.c
+++ b/src/pulsecore/iochannel.c
@@ -119,7 +119,7 @@ static void enable_events(pa_iochannel *io) {
io->mainloop->io_enable(io->output_event, PA_IO_EVENT_OUTPUT);
else
io->output_event = io->mainloop->io_new(io->mainloop, io->ofd, PA_IO_EVENT_OUTPUT, callback, io);
- } else if (io->input_event) {
+ } else if (io->output_event) {
io->mainloop->io_free(io->output_event);
io->output_event = NULL;
}
--
2.39.2