Replace numerous instances of xzalloc with XZALLOC
[pspp] / src / output / cairo.c
index dc5cf94ca3cbf1115835b68d19bcd4993c4cce78..a08771bb449ae68cb2d0d126c3c439a0e2907395 100644 (file)
@@ -187,7 +187,7 @@ static struct xr_driver *
 xr_allocate (const char *name, int device_type,
              enum xr_output_type output_type, struct string_map *o)
 {
-  struct xr_driver *xr = xzalloc (sizeof *xr);
+  struct xr_driver *xr = XZALLOC (struct xr_driver);
   struct output_driver *d = &xr->driver;
 
   output_driver_init (d, &cairo_driver_class, name, device_type);