[Spice-devel] [PATCH 3/5] server/red_worker: fix for case where ASSERT is compiled out

Alon Levy alevy at redhat.com
Wed Mar 21 09:00:56 PDT 2012


---
 server/red_worker.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 0d09622..45260ee 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8374,9 +8374,8 @@ static void red_display_marshall_stream_clip(RedChannelClient *rcc,
 {
     DisplayChannelClient *dcc = RCC_TO_DCC(rcc);
     StreamAgent *agent = item->stream_agent;
-    Stream *stream = agent->stream;
 
-    ASSERT(stream);
+    ASSERT(agent->stream);
 
     red_channel_client_init_send_data(rcc, SPICE_MSG_DISPLAY_STREAM_CLIP, &item->base);
     SpiceMsgDisplayStreamClip stream_clip;
-- 
1.7.9.3



More information about the Spice-devel mailing list