mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-14 07:30:30 +01:00
script: Initialize recording extents
The 2-arguments recording operator was passing a garbage pointer to the surface creation function. Spotted by the clang static analyzer.
This commit is contained in:
parent
e06a3b9761
commit
89cb071d14
1 changed files with 1 additions and 0 deletions
|
|
@ -6084,6 +6084,7 @@ _record (csi_t *ctx)
|
|||
extents.x = extents.y = 0;
|
||||
extents.width = _csi_object_as_real (&array->stack.objects[0]);
|
||||
extents.height = _csi_object_as_real (&array->stack.objects[1]);
|
||||
r = &extents;
|
||||
break;
|
||||
case 4:
|
||||
extents.x = _csi_object_as_real (&array->stack.objects[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue