diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2016-04-05 03:18:04 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2016-04-05 03:18:04 +0000 |
commit | 63a8ecf3099475c7560036054dae728a1869685e (patch) | |
tree | 25077d46b98c0231e960624e7fea47dc7257f167 /src/sg_dd.c | |
parent | 61a0b017ebca98eca9c5d85264af45b3eb1853e5 (diff) | |
download | sg3_utils-63a8ecf3099475c7560036054dae728a1869685e.tar.gz |
clang --analyze static checker clean ups
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@689 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_dd.c')
-rw-r--r-- | src/sg_dd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_dd.c b/src/sg_dd.c index b0370a5a..834e89b0 100644 --- a/src/sg_dd.c +++ b/src/sg_dd.c @@ -336,7 +336,7 @@ dd_filetype_str(int ft, char * buff) if (FT_OTHER & ft) off += snprintf(buff + off, 32, "other (perhaps ordinary file) "); if (FT_ERROR & ft) - off += snprintf(buff + off, 32, "unable to 'stat' file "); + snprintf(buff + off, 32, "unable to 'stat' file "); return buff; } @@ -673,7 +673,7 @@ sg_read_low(int sg_fd, unsigned char * buff, int blocks, int64_t from_block, (0x64 == ssh.asc) && (0x0 == ssh.ascq)) { if (sg_get_sense_filemark_eom_ili(sbp, slen, NULL, NULL, &ili) && ili) { - info_valid = sg_get_sense_info_fld(sbp, slen, io_addrp); + sg_get_sense_info_fld(sbp, slen, io_addrp); if (*io_addrp > 0) { ++unrecovered_errs; return SG_LIB_CAT_MEDIUM_HARD_WITH_INFO; |