Skip to content

Commit d47dddc

Browse files
authored
Initialize coh_data with zeros
1 parent 7d0de7c commit d47dddc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libltfs/tape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ int tape_set_cart_coherency(struct device_data *dev, const tape_partition_t part
17671767
struct tc_coherency *coh)
17681768
{
17691769
int ret;
1770-
unsigned char coh_data[TC_MAM_PAGE_COHERENCY_SIZE + TC_MAM_PAGE_HEADER_SIZE];
1770+
unsigned char coh_data[TC_MAM_PAGE_COHERENCY_SIZE + TC_MAM_PAGE_HEADER_SIZE] = {0};
17711771

17721772
CHECK_ARG_NULL(dev, -LTFS_NULL_ARG);
17731773
CHECK_ARG_NULL(dev->backend, -LTFS_NULL_ARG);

0 commit comments

Comments
 (0)