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

Fabiano FidĂȘncio fidencio at redhat.com
Mon Nov 23 07:44:33 PST 2015


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

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

diff --git a/server/red_worker.c b/server/red_worker.c
index d371cc3..3873da4 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -4537,7 +4537,7 @@ static void release_item(RedChannelClient *rcc, PipeItem *item, int item_pushed)
 {
     DisplayChannelClient *dcc = RCC_TO_DCC(rcc);
 
-    spice_assert(item);
+    spice_return_if_fail(item != NULL);
     dcc_release_item(dcc, item, item_pushed);
 }
 
-- 
2.5.0



More information about the Spice-devel mailing list