summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-01-27 12:43:54 -0500
committerDavid Zeuthen <davidz@redhat.com>2012-01-27 12:43:54 -0500
commit04fc29e4213c595dfbcfad153425e91e9dbf97b7 (patch)
tree8367d4af45c3b078b89ebd2132d53a08136ea942
parent536688a9eafa8f585e32d7b278e9bb690c4f6f9e (diff)
Shut up valgrind complaing about LOOP_GET_STATUS64 ioctl
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/udiskscleanup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udiskscleanup.c b/src/udiskscleanup.c
index 0405e43..b5b61c1 100644
--- a/src/udiskscleanup.c
+++ b/src/udiskscleanup.c
@@ -1561,6 +1561,7 @@ udisks_cleanup_check_loop_entry (UDisksCleanup *cleanup,
attempt_no_cleanup = TRUE;
goto out;
}
+ memset (&li64, '\0', sizeof (struct loop_info64));
if (ioctl (loop_device_fd, LOOP_GET_STATUS64, &li64) == -1)
{
udisks_info ("error issuing LOOP_GET_STATUS64 ioctl on %s: %m", loop_device);