From c8a4f486712eba4ad0ccbf5ae3b18920137d5b1b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 23 Sep 2009 18:08:34 +0100 Subject: [PATCH] [image] Do not trust user supplied data to be clear Gah, more important than the whitespace was the reversal of is_clear... --- src/cairo-image-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index ecc042b13..0c5cc769f 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -394,7 +394,7 @@ _cairo_image_surface_create_with_pixman_format (unsigned char *data, } /* we can not make any assumptions about the initial state of user data */ - ((cairo_image_surface_t *) surface)->is_clear = data != NULL; + ((cairo_image_surface_t *) surface)->is_clear = data == NULL; return surface; }