diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-08 17:29:45 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-02-07 19:22:44 +0200 |
commit | 8c17f83940d3b8c800648117dc8ec131c56b6924 (patch) | |
tree | 69c33029c9a58e30284eee4e5ac25b43ef643c49 /server | |
parent | c4d028510d9b5ec5221eabc9bf68433c80fe7b7c (diff) | |
download | spice-8c17f83940d3b8c800648117dc8ec131c56b6924.tar.gz spice-8c17f83940d3b8c800648117dc8ec131c56b6924.tar.xz spice-8c17f83940d3b8c800648117dc8ec131c56b6924.zip |
server/red_channel: style fix in red_channel_init_send_data
Diffstat (limited to 'server')
-rw-r--r-- | 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 a51359ab..6008876a 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); } } |