diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-02-15 09:11:44 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-02-15 09:25:34 -0500 |
commit | 4b1b5affc051c1827b4cc5d688919d1921ea6e77 (patch) | |
tree | 1b9d42c7a31f04ebb46e26f28eaa58600e1f90fa | |
parent | 017c893a8cf6c8fa35916893aec354b50117cd0d (diff) |
In pixman_image_set_transform() allow NULL for transform
Previously, this would crash unless the existing transform were also
NULL.
-rw-r--r-- | pixman/pixman-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 55fc17ac..9103ca6c 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -502,7 +502,7 @@ pixman_image_set_transform (pixman_image_t * image, if (common->transform == transform) return TRUE; - if (memcmp (&id, transform, sizeof (pixman_transform_t)) == 0) + if (!transform || memcmp (&id, transform, sizeof (pixman_transform_t)) == 0) { free (common->transform); common->transform = NULL; |