Patchwork [1/3] spice-core: fix watching for write events

login
register
mail settings
Submitter Gerd Hoffmann
Date Nov. 2, 2010, 11:56 a.m.
Message ID <1288699019-18711-2-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/69883/
State New
Headers show

Comments

Gerd Hoffmann - Nov. 2, 2010, 11:56 a.m.
From: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/spice-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/ui/spice-core.c b/ui/spice-core.c
index 6a1cf17..45807ed 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -95,7 +95,7 @@  static void watch_update_mask(SpiceWatch *watch, int event_mask)
         on_read = watch_read;
     }
     if (watch->event_mask & SPICE_WATCH_EVENT_WRITE) {
-        on_read = watch_write;
+        on_write = watch_write;
     }
     qemu_set_fd_handler(watch->fd, on_read, on_write, watch);
 }