diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-23 18:08:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-23 18:08:34 +0100 |
commit | c8a4f486712eba4ad0ccbf5ae3b18920137d5b1b (patch) | |
tree | 20e01ccd690487badfed0d3a4697fc389f041087 /src | |
parent | 03bce099eae68643979e5742b2703b2b2e835cca (diff) |
[image] Do not trust user supplied data to be clear
Gah, more important than the whitespace was the reversal of is_clear...
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-image-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index ecc042b1..0c5cc769 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; } |