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:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user