summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-23 18:08:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-23 18:08:34 +0100
commitc8a4f486712eba4ad0ccbf5ae3b18920137d5b1b (patch)
tree20e01ccd690487badfed0d3a4697fc389f041087 /src
parent03bce099eae68643979e5742b2703b2b2e835cca (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.c2
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;
}