From 20315aa4fae1340e5d4b1faae15b90ee34b9ea50 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Sat, 20 Nov 2021 17:13:42 +0000 Subject: sg_z_act_query: new utility for sending either a Zone activate or Zone query command; sg_rep_zones: add Report zone starting LBA granularity field in REPORT ZONES response [zbc2r12]; sg_decode_sense: add --nodecode option; initialize all sense buffers to 0; rework main README file git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@923 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- testing/sg_tst_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/sg_tst_ioctl.c') diff --git a/testing/sg_tst_ioctl.c b/testing/sg_tst_ioctl.c index f7a421e9..5f361d7b 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]; + uint8_t sense_buffer[SENSE_BUFFER_LEN] = {0}; 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]; + uint8_t sense_buffer[MAX_Q_LEN][SENSE_BUFFER_LEN] = {0}; const char * second_fname = NULL; const char * cp; char * chp; -- cgit v1.2.3