[Spice-devel] [PATCH 03/19] worker: use spice_return_if_fail() instead of spice_assert() in release_item

Frediano Ziglio fziglio at redhat.com
Wed Nov 25 07:27:28 PST 2015


From: Marc-André Lureau <marcandre.lureau at gmail.com>

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

diff --git a/server/display-channel.c b/server/display-channel.c
index cffd6fa..1be3334 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -1662,7 +1662,7 @@ static void release_item(RedChannelClient *rcc, PipeItem *item, int item_pushed)
 {
     DisplayChannelClient *dcc = RCC_TO_DCC(rcc);
 
-    spice_assert(item != NULL);
+    spice_return_if_fail(item != NULL);
     dcc_release_item(dcc, item, item_pushed);
 }
 
-- 
2.4.3



More information about the Spice-devel mailing list