aboutsummaryrefslogtreecommitdiff
path: root/testing/sg_tst_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/sg_tst_context.cpp')
-rw-r--r--testing/sg_tst_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/sg_tst_context.cpp b/testing/sg_tst_context.cpp
index fd0f68b6..f7cff2fb 100644
--- a/testing/sg_tst_context.cpp
+++ b/testing/sg_tst_context.cpp
@@ -183,7 +183,7 @@ do_tur(struct sg_pt_base * ptp, int id)
{
int slen, res, cat;
unsigned char turCmdBlk [TUR_CMD_LEN] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
- unsigned char sense_buffer[64] = {0};
+ unsigned char sense_buffer[64] SG_C_CPP_ZERO_INIT;
clear_scsi_pt_obj(ptp);
set_scsi_pt_cdb(ptp, turCmdBlk, sizeof(turCmdBlk));
@@ -228,7 +228,7 @@ do_ssu(struct sg_pt_base * ptp, int id, bool start)
{
int slen, res, cat;
unsigned char ssuCmdBlk [SSU_CMD_LEN] = {0x1b, 0x0, 0x0, 0x0, 0x0, 0x0};
- unsigned char sense_buffer[64] = {0};
+ unsigned char sense_buffer[64] SG_C_CPP_ZERO_INIT;
if (start)
ssuCmdBlk[4] |= 0x1;