server: red_send_image() initialize bitmap.flags

We're currently sending this to the network based on random memory.
This commit is contained in:
Alexander Larsson 2010-08-26 20:10:33 +02:00
parent 80bb4d95a0
commit c13f931b5f

View File

@ -7855,6 +7855,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;
}