summaryrefslogtreecommitdiff
path: root/utests/compiler_array1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utests/compiler_array1.cpp')
-rw-r--r--utests/compiler_array1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/compiler_array1.cpp b/utests/compiler_array1.cpp
index fe1ecec3..70ff049b 100644
--- a/utests/compiler_array1.cpp
+++ b/utests/compiler_array1.cpp
@@ -3,7 +3,7 @@
static void cpu(int global_id, int *src, int *dst) {
int final[16];
for (int i = 0; i < 16; ++i) {
- int array[16];
+ int array[16] = {0};
for (int j = 0; j < src[0]; ++j)
array[j] = 1+src[0];
for (int j = src[0]; j < 16; ++j)