[pulseaudio-discuss] [PATCH v2 18/19] core: Fix check for io->output_event in enable_events()

Peter Meerwald pmeerw at pmeerw.net
Thu Dec 19 03:11:47 PST 2013


From: Peter Meerwald <p.meerwald at bct-electronic.com>

copy-pase error discovered by coverity

Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 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 ca0f350..dce6734 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;
             }
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list