diff options
Diffstat (limited to 'src/sg_write_x.c')
-rw-r--r-- | src/sg_write_x.c | 5 |
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; |