[Spice-devel] [PATCH 1/7] worker: remove current_add assert
Fabiano FidĂȘncio
fidencio at redhat.com
Thu Nov 12 06:32:24 PST 2015
On Thu, Nov 12, 2015 at 3:00 PM, Frediano Ziglio <fziglio at redhat.com> wrote:
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
ACK!
More information about the Spice-devel
mailing list