diff options
Diffstat (limited to 'testing/sg_tst_ioctl.c')
-rw-r--r-- | testing/sg_tst_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/sg_tst_ioctl.c b/testing/sg_tst_ioctl.c index 1d396eb0..ade56a1d 100644 --- a/testing/sg_tst_ioctl.c +++ b/testing/sg_tst_ioctl.c @@ -635,7 +635,7 @@ do_mrqs(int sg_fd, int sg_fd2, int mrqs) struct sg_io_v4 * h4p; struct sg_io_v4 * mrq_h4p; struct sg_io_v4 mrq_h4; - uint8_t sense_buffer[SENSE_BUFFER_LEN] = {0}; + uint8_t sense_buffer[SENSE_BUFFER_LEN] SG_C_CPP_ZERO_INIT; uint8_t inq_cdb[INQ_CMD_LEN] = /* Device Id VPD page */ {0x12, 0x1, 0x83, 0, INQ_REPLY_LEN, 0}; uint8_t sdiag_cdb[SDIAG_CMD_LEN] = @@ -786,7 +786,7 @@ main(int argc, char * argv[]) sg_io_hdr_t rio_hdr; char ebuff[EBUFF_SZ]; char dname[256]; - uint8_t sense_buffer[MAX_Q_LEN][SENSE_BUFFER_LEN] = {0}; + uint8_t sense_buffer[MAX_Q_LEN][SENSE_BUFFER_LEN] SG_C_CPP_ZERO_INIT; const char * second_fname = NULL; const char * cp; char * chp; |