[cairo-commit] src/cairo-image-surface.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Sep 23 10:09:43 PDT 2009
src/cairo-image-surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c8a4f486712eba4ad0ccbf5ae3b18920137d5b1b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Sep 23 18:08:34 2009 +0100
[image] Do not trust user supplied data to be clear
Gah, more important than the whitespace was the reversal of is_clear...
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index ecc042b..0c5cc76 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;
}
More information about the cairo-commit
mailing list