[Spice-commits] client/red_client.cpp

Arnon Gilboa agilboa at kemper.freedesktop.org
Wed Nov 24 03:09:21 PST 2010


 client/red_client.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eb3efa3cbb8a94340c39bc56b65541592c965fc7
Author: Arnon Gilboa <agilboa at redhat.com>
Date:   Tue Nov 23 17:33:31 2010 +0200

    spicec: fix ASSERT to accept size == 0
    
    which is useful when calling RedClient::on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0);

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-commits mailing list