Shut up valgrind complaing about LOOP_GET_STATUS64 ioctl
authorDavid Zeuthen <davidz@redhat.com>
Fri, 27 Jan 2012 17:43:54 +0000 (12:43 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 27 Jan 2012 17:43:54 +0000 (12:43 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udiskscleanup.c

index 0405e43..b5b61c1 100644 (file)
@@ -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);