summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2010-11-23 17:33:31 +0200
committerArnon Gilboa <agilboa@redhat.com>2010-11-24 13:09:10 +0200
commiteb3efa3cbb8a94340c39bc56b65541592c965fc7 (patch)
tree3484492e6bdf4188b2f3b189ad8e0557fbbee6b3
parentdd31c0cbfd76a3154d6b6bd7ba47f30aec175815 (diff)
downloadspice-eb3efa3cbb8a94340c39bc56b65541592c965fc7.tar.gz
spice-eb3efa3cbb8a94340c39bc56b65541592c965fc7.tar.xz
spice-eb3efa3cbb8a94340c39bc56b65541592c965fc7.zip
spicec: fix ASSERT to accept size == 0
which is useful when calling RedClient::on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0);
-rw-r--r--client/red_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp
index 0fc48157..46d56022 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;
}