initialize sense to keep valgrind happy

valgrind does not know that sense will be initialized by the ioctl
so we need to to it explicitely to keep it from warning us.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2014-09-21 14:58:12 -07:00
parent f2904be1f6
commit 2af45d9ad4

View File

@@ -1,4 +1,3 @@
/*
iscsi-test tool support
@@ -200,6 +199,7 @@ static struct scsi_task *send_scsi_command(struct scsi_device *sdev, struct scsi
unsigned char sense[sense_len];
char buf[1024];
memset(sense, 0, sizeof(sense));
memset(&io_hdr, 0, sizeof(sg_io_hdr_t));
io_hdr.interface_id = 'S';