[Spice-devel] [PATCH 2/3] Add a warning for unhandled case

Marc-André Lureau marcandre.lureau at gmail.com
Thu Nov 14 08:03:18 PST 2013


From: Marc-André Lureau <marcandre.lureau at gmail.com>

---
 src/vdagentd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vdagentd.c b/src/vdagentd.c
index eed183b..2eb97cb 100644
--- a/src/vdagentd.c
+++ b/src/vdagentd.c
@@ -459,6 +459,9 @@ int do_agent_clipboard(struct udscs_connection *conn,
         size = 0;
         agent_owns_clipboard[selection] = 0;
         break;
+    default:
+        syslog(LOG_WARNING, "unexpected clipboard message type");
+        goto error;
     }
 
     if (size != header->size) {
-- 
1.8.3.1



More information about the Spice-devel mailing list