Blob Blame History Raw
From c2603369a17ea86812d924c42160e518fdb56f9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
Date: Fri, 11 Jul 2014 17:02:18 +0200
Subject: [PATCH] Fix "REVERSE_INULL" caught by coverity

---
 gtk/channel-cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/channel-cursor.c b/gtk/channel-cursor.c
index e056b30..36c0ca4 100644
--- a/gtk/channel-cursor.c
+++ b/gtk/channel-cursor.c
@@ -433,7 +433,7 @@ static display_cursor *set_cursor(SpiceChannel *channel, SpiceCursor *scursor)
     }
 
 cache_add:
-    if (cursor && (scursor->flags & SPICE_CURSOR_FLAGS_CACHE_ME)) {
+    if (scursor->flags & SPICE_CURSOR_FLAGS_CACHE_ME) {
         cache_add(c->cursors, hdr->unique, display_cursor_ref(cursor));
     }
 
-- 
1.9.3