[Spice-devel] [PATCH 1/7] worker: remove current_add assert
Frediano Ziglio
fziglio at redhat.com
Thu Nov 12 06:00:55 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 6bc015f..d33a352 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -2254,7 +2254,7 @@ static inline int current_add(RedWorker *worker, Ring *ring, Drawable *drawable)
QRegion exclude_rgn;
RingItem *exclude_base = NULL;
- spice_assert(!region_is_empty(&item->base.rgn));
+ spice_return_val_if_fail(!region_is_empty(&item->base.rgn), FALSE);
region_init(&exclude_rgn);
now = ring_next(ring, ring);
--
2.4.3
More information about the Spice-devel
mailing list