[Spice-devel] [PATCH 1/2] server: red_send_image() initialize bitmap.flags

alexl at redhat.com alexl at redhat.com
Thu Aug 26 11:10:33 PDT 2010


From: Alexander Larsson <alexl at redhat.com>

We're currently sending this to the network based on random memory.
---
 server/red_worker.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 27d9491..da7e8e8 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -7915,6 +7915,7 @@ static void red_send_image(DisplayChannel *display_channel, ImageItem *item)
     red_image.descriptor.height = item->height;
 
     bitmap.format = item->image_format;
+    bitmap.flags = 0;
     if (item->top_down) {
         bitmap.flags |= SPICE_BITMAP_FLAGS_TOP_DOWN;
     }
-- 
1.7.0.1



More information about the Spice-devel mailing list