[PATCH] server: Fix the order of the attach_stream() asserts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
---

I assume the reason for having two asserts is to help with diagnosis so 
I did not merge them.

 server/stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/stream.c b/server/stream.c
index 2bfb993..f1edec7 100644
--- a/server/stream.c
+++ b/server/stream.c
@@ -263,8 +263,8 @@ static void attach_stream(DisplayChannel *display, Drawable *drawable, Stream *s
     DisplayChannelClient *dcc;
     RingItem *item, *next;
 
-    spice_assert(!drawable->stream && !stream->current);
     spice_assert(drawable && stream);
+    spice_assert(!drawable->stream && !stream->current);
     stream->current = drawable;
     drawable->stream = stream;
     stream->last_time = drawable->creation_time;
-- 
2.7.0
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]