diff options
-rw-r--r-- | tests/i915/gem_render_tiled_blits.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_render_tiled_blits.c b/tests/i915/gem_render_tiled_blits.c index 3484d561..ef81c787 100644 --- a/tests/i915/gem_render_tiled_blits.c +++ b/tests/i915/gem_render_tiled_blits.c @@ -120,7 +120,7 @@ static void run_test (int fd, int count) igt_info("Using a snoop linear buffer for comparisons\n"); } - buf = malloc(sizeof(*buf)*count); + buf = calloc(sizeof(*buf), count); start_val = malloc(sizeof(*start_val)*count); for (i = 0; i < count; i++) { |