aboutsummaryrefslogtreecommitdiff
path: root/src/sg_write_x.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-02-18 05:36:07 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-02-18 05:36:07 +0000
commit8385f6006c857fb6a7e66b4b29da1d91c5300bb6 (patch)
treeab5c5d5dd98601663aaaa68e1b7b88d6e52fa0ad /src/sg_write_x.c
parentb3918431020005cc1fbf1d3fe836da0048c15c8c (diff)
downloadsg3_utils-8385f6006c857fb6a7e66b4b29da1d91c5300bb6.tar.gz
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
Diffstat (limited to 'src/sg_write_x.c')
-rw-r--r--src/sg_write_x.c5
1 files changed, 2 insertions, 3 deletions
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;