[Spice-devel] [PATCH spice] spicec: fix ASSERT to accept size == 0

Hans de Goede hdegoede at redhat.com
Wed Nov 24 01:10:36 PST 2010


Ack.

p.s. Could you please review my "spicec: Don't show a white screen if guest resolution does not fit fullscreen" patch?

Thanks,

Hans


On 11/24/2010 09:41 AM, Arnon Gilboa wrote:
> which is useful when calling RedClient::on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0);
> ---
>   client/red_client.cpp |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/client/red_client.cpp b/client/red_client.cpp
> index 0fc4815..46d5602 100644
> --- a/client/red_client.cpp
> +++ b/client/red_client.cpp
> @@ -888,7 +888,7 @@ void RedClient::on_clipboard_release()
>
>   void RedClient::send_agent_clipboard_notify_message(uint32_t type, uint8_t *data, uint32_t size)
>   {
> -    ASSERT(size&&  data);
> +    ASSERT(data || !size);
>       if (!_agent_connected) {
>           return;
>       }


More information about the Spice-devel mailing list