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:
Andrea Canciani 2011-07-29 10:39:43 +02:00
parent e06a3b9761
commit 89cb071d14

View file

@ -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]);