diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2010-11-23 17:33:31 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-12-16 16:21:20 +0100 |
commit | c1880e8f322f98ae2bd0186c210531d8f8282b28 (patch) | |
tree | 20125329d57be42f71d029b0b68a36534d28a8f5 | |
parent | 6437f11de2ceee2be932143c5f3779e232ec3415 (diff) | |
download | spice-c1880e8f322f98ae2bd0186c210531d8f8282b28.tar.gz spice-c1880e8f322f98ae2bd0186c210531d8f8282b28.tar.xz spice-c1880e8f322f98ae2bd0186c210531d8f8282b28.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.cpp | 2 |
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; } |