summaryrefslogtreecommitdiff
path: root/src/cairo-array.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-02-13 16:47:41 -0800
committerCarl Worth <cworth@cworth.org>2006-02-13 16:47:41 -0800
commit73c2eada0d0c80763f0a953cce7fc144f7931fa1 (patch)
treed455caf8febf6e9eb1eed134e5fc80acd26b2f6f /src/cairo-array.c
parent01dd527ef3cb3205e33ffec90a11fda11f0e281a (diff)
parentb9861b3e877776c5fe5b8b30fe76ced8ff846923 (diff)
Remove pixman from SNAPSHOT_0_6_0SNAPSHOT_0_6_0
Diffstat (limited to 'src/cairo-array.c')
-rw-r--r--src/cairo-array.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-array.c b/src/cairo-array.c
index a9f148a0..ef7f77fc 100644
--- a/src/cairo-array.c
+++ b/src/cairo-array.c
@@ -198,6 +198,11 @@ _cairo_user_data_array_get_data (cairo_user_data_array_t *array,
int i, num_slots;
cairo_user_data_slot_t *slots;
+ /* We allow this to support degenerate objects such as
+ * cairo_image_surface_nil. */
+ if (array == NULL)
+ return NULL;
+
num_slots = array->num_elements;
slots = (cairo_user_data_slot_t *) array->elements;
for (i = 0; i < num_slots; i++) {