aboutsummaryrefslogtreecommitdiff
path: root/src/sg_z_act_query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_z_act_query.c')
-rw-r--r--src/sg_z_act_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_z_act_query.c b/src/sg_z_act_query.c
index f0e0688f..372c27c9 100644
--- a/src/sg_z_act_query.c
+++ b/src/sg_z_act_query.c
@@ -142,7 +142,7 @@ sg_ll_zone_act_query(int sg_fd, const struct opts_t * op, void * resp,
struct sg_pt_base * ptvp;
uint8_t zi_cdb[SG_ZBC_IN_CMDLEN] =
{SG_ZBC_IN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
- uint8_t sense_b[SENSE_BUFF_LEN] = {0};
+ uint8_t sense_b[SENSE_BUFF_LEN] SG_C_CPP_ZERO_INIT;
char b[64];
zi_cdb[1] = 0x1f & sa;
@@ -365,7 +365,7 @@ main(int argc, char * argv[])
uint8_t * free_zibp = NULL;
const char * sa_name;
char b[80];
- struct opts_t opts = {0};
+ struct opts_t opts SG_C_CPP_ZERO_INIT;
struct opts_t * op = &opts;
while (1) {