X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo.c;h=a08771bb449ae68cb2d0d126c3c439a0e2907395;hb=21fd4cf34deb63f4968a715d9720f34bd1995447;hp=dc5cf94ca3cbf1115835b68d19bcd4993c4cce78;hpb=672776c201a00e1a667d37a957e7d2211300d48a;p=pspp diff --git a/src/output/cairo.c b/src/output/cairo.c index dc5cf94ca3..a08771bb44 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -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);