Silenced a valgrind warning caused by not recognizing side effects of a ioctl

This commit is contained in:
Thomas Schmitt 2009-09-05 11:42:25 +00:00
parent 693784cbf5
commit 970ae46cfa
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2009.09.05.113043"
#define Cdrskin_timestamP "2009.09.05.114326"

View File

@ -1878,6 +1878,8 @@ int sg_obtain_scsi_adr(char *path, int *bus_no, int *host_no, int *channel_no,
};
struct my_scsi_idlun idlun;
/* valgrind called idlun unitialized because it is blind for ioctl */
memset(&idlun, 0, sizeof(struct my_scsi_idlun));
l = strlen(linux_ata_device_family) - 2;
if (l > 0 && strncmp(path, linux_ata_device_family, l) == 0