Message ID | 1432818298-28987-1-git-send-email-marcandre.lureau@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/spice-qemu-char.c b/spice-qemu-char.c index a4f4e57..4199bc2 100644 --- a/spice-qemu-char.c +++ b/spice-qemu-char.c @@ -169,7 +169,7 @@ static GSource *spice_chr_add_watch(CharDriverState *chr, GIOCondition cond) SpiceCharDriver *scd = chr->opaque; SpiceCharSource *src; - assert(cond == G_IO_OUT); + assert(cond & G_IO_OUT); src = (SpiceCharSource *)g_source_new(&SpiceCharSourceFuncs, sizeof(SpiceCharSource));