mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-22 14:00:42 +02:00
clip: Do the NULL check before the dereference.
Breakage introduced in the commit earlier today.
This commit is contained in:
parent
ef0679333d
commit
f53f072a22
1 changed files with 2 additions and 1 deletions
|
|
@ -1108,11 +1108,12 @@ cairo_bool_t
|
|||
_cairo_clip_contains_rectangle (cairo_clip_t *clip,
|
||||
const cairo_rectangle_int_t *rect)
|
||||
{
|
||||
cairo_clip_path_t *clip_path = clip->path;
|
||||
cairo_clip_path_t *clip_path;
|
||||
|
||||
if (clip == NULL)
|
||||
return FALSE;
|
||||
|
||||
clip_path = clip->path;
|
||||
if (clip_path->extents.x > rect->x ||
|
||||
clip_path->extents.y > rect->y ||
|
||||
clip_path->extents.x + clip_path->extents.width < rect->x + rect->width ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue