summaryrefslogtreecommitdiffstats
path: root/atasmart.c
diff options
context:
space:
mode:
Diffstat (limited to 'atasmart.c')
-rw-r--r--atasmart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/atasmart.c b/atasmart.c
index f1cf4ea..2d8b820 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -487,6 +487,8 @@ static int disk_sunplus_command(SkDisk *d, SkAtaCommand command, SkDirection dir
cdb[1] = 0x00;
cdb[2] = 0x21;
+ memset(buf, 0, sizeof(buf));
+
/* Ask for response */
if ((ret = sg_io(d->fd, SG_DXFER_FROM_DEV, cdb, sizeof(cdb), buf, sizeof(buf), sense, sizeof(sense))) < 0)
return ret;