diff --git a/thrust/system/cuda/detail/cub/agent/single_pass_scan_operators.cuh b/thrust/system/cuda/detail/cub/agent/single_pass_scan_operators.cuh index 438c643b4..fd76add77 100644 --- a/thrust/system/cuda/detail/cub/agent/single_pass_scan_operators.cuh +++ b/thrust/system/cuda/detail/cub/agent/single_pass_scan_operators.cuh @@ -320,7 +320,7 @@ struct ScanTileState cudaError_t error = cudaSuccess; do { - void* allocations[3]; + void* allocations[3] = { NULL, NULL, NULL }; size_t allocation_sizes[3]; allocation_sizes[0] = (num_tiles + TILE_STATUS_PADDING) * sizeof(StatusWord); // bytes needed for tile status descriptors