[Spice-devel] [PATCH 23/23] server/red_channel: style fix in red_channel_init_send_data

Alon Levy alevy at redhat.com
Mon Feb 7 09:31:25 PST 2011


---
 server/red_channel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red_channel.c b/server/red_channel.c
index a51359a..6008876 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -458,10 +458,10 @@ void red_channel_reset_send_data(RedChannel *channel)
 
 void red_channel_init_send_data(RedChannel *channel, uint16_t msg_type, PipeItem *item)
 {
+    ASSERT(channel->send_data.item == NULL);
     channel->send_data.header->type = msg_type;
+    channel->send_data.item = item;
     if (item) {
-        ASSERT(channel->send_data.item == NULL);
-        channel->send_data.item = item;
         channel->hold_item(item);
     }
 }
-- 
1.7.4



More information about the Spice-devel mailing list