summaryrefslogtreecommitdiff
path: root/test/stride-12-image.c
diff options
context:
space:
mode:
authorRavi Nanjundappa <nravi.n@samsung.com>2014-05-06 15:44:21 +0530
committerBryce Harrington <b.harrington@samsung.com>2014-05-16 11:56:27 -0700
commitd1453c512c8213115bd489b3ea8849b1c840b551 (patch)
treeeb0863388058c1f64e5430144bf1b15c3556d97d /test/stride-12-image.c
parent69e10bc8b53792f58e06387542c4eeeca52795c9 (diff)
downloadcairo-d1453c512c8213115bd489b3ea8849b1c840b551.tar.gz
test : Maintain consistency in the usage of xcalloc
xcalloc is a wrapper for calloc. If it can't allocate memory then it terminates the program. The current changes replace the usages of calloc by xcalloc in tests. Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Diffstat (limited to 'test/stride-12-image.c')
-rw-r--r--test/stride-12-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stride-12-image.c b/test/stride-12-image.c
index 21bd8b024..5650e9830 100644
--- a/test/stride-12-image.c
+++ b/test/stride-12-image.c
@@ -41,7 +41,7 @@ draw (cairo_t *cr, int width, int height)
png = cairo_test_create_surface_from_png (ctx, png_filename);
stride = cairo_format_stride_for_width (format, width) + 12;
- data = calloc (stride, height);
+ data = xcalloc (stride, height);
src = cairo_image_surface_create_for_data (data, format,
width, height, stride);