From eb3efa3cbb8a94340c39bc56b65541592c965fc7 Mon Sep 17 00:00:00 2001 From: Arnon Gilboa Date: Tue, 23 Nov 2010 17:33:31 +0200 Subject: spicec: fix ASSERT to accept size == 0 which is useful when calling RedClient::on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0); --- client/red_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit