From 8385f6006c857fb6a7e66b4b29da1d91c5300bb6 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 18 Feb 2022 05:36:07 +0000 Subject: sg_read_buffer: add --eh_code= and --no_output options; sg_inq, sg_vpd: Device Identication VPD page, change IEEE Company_id to AOI git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@938 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_write_x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/sg_write_x.c') diff --git a/src/sg_write_x.c b/src/sg_write_x.c index 81ee1a67..b7c34f75 100644 --- a/src/sg_write_x.c +++ b/src/sg_write_x.c @@ -38,7 +38,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "1.30 20220127"; +static const char * version_str = "1.31 20220217"; /* Protection Information refers to 8 bytes of extra information usually * associated with each logical block and is often abbreviated to PI while @@ -2197,10 +2197,9 @@ main(int argc, char * argv[]) uint64_t addr_arr[MAX_NUM_ADDR]; uint32_t num_arr[MAX_NUM_ADDR]; struct stat if_stat, sf_stat; - struct opts_t opts; + struct opts_t opts = {0}; op = &opts; - memset(op, 0, sizeof(opts)); memset(&if_stat, 0, sizeof(if_stat)); memset(&sf_stat, 0, sizeof(sf_stat)); op->numblocks = DEF_WR_NUMBLOCKS; -- cgit v1.2.3