[Spice-devel] [PATCH spice-server] Fix typo in is_equal_brush

Daniel P. Berrange berrange at redhat.com
Wed Apr 25 03:23:35 PDT 2012


The 3 part of the conditional in the is_equal_brush method
compared the b1->u.color field to itself, instead of b2->u.color

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 server/red_worker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index fc74924..e271ae5 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -2346,7 +2346,7 @@ static int is_equal_brush(SpiceBrush *b1, SpiceBrush *b2)
 {
     return b1->type == b2->type &&
            b1->type == SPICE_BRUSH_TYPE_SOLID &&
-           b1->u.color == b1->u.color;
+           b1->u.color == b2->u.color;
 }
 
 // partial imp
-- 
1.7.1



More information about the Spice-devel mailing list