From 3e93bba3b04b42c2ab99d828dae12c18f29bcf7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Thu, 5 Jan 2012 10:37:51 -0500 Subject: [PATCH] pixman-image.c: Fix typo in pixman_image_set_transform() A parenthesis was misplaced so that the size argument to memcmp() was always 0. The bug is harmless except that the flags might be unnecessarily recomputed in some cases. A bug reporting this in Mozilla's fork was discovered here: https://bugzilla.mozilla.org/show_bug.cgi?id=710992 --- pixman/pixman-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 913853c..ad5996b 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -631,7 +631,7 @@ pixman_image_set_transform (pixman_image_t * image, } if (common->transform && - memcmp (common->transform, transform, sizeof (pixman_transform_t) == 0)) + memcmp (common->transform, transform, sizeof (pixman_transform_t)) == 0) { return TRUE; } -- 2.7.4