summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairo-boxes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-boxes.c b/src/cairo-boxes.c
index d2b9e7ec..363f8e76 100644
--- a/src/cairo-boxes.c
+++ b/src/cairo-boxes.c
@@ -128,7 +128,7 @@ _cairo_boxes_add_internal (cairo_boxes_t *boxes,
sizeof (cairo_box_t),
sizeof (struct _cairo_boxes_chunk));
- if (unlikely (chunk == NULL)) {
+ if (unlikely (chunk->next == NULL)) {
boxes->status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
return;
}