summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2014-01-22 16:36:14 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2014-12-18 12:05:20 +0100
commit7088199a2cd7920be3931de90ca4aa3d12966bcf (patch)
treec44bd0e80700ce8e4aaccc437ab48e50098d2999
parentfd837d9638af520d3bbc0d5865cba7e70b3038f8 (diff)
udisks_linux_drive_object_uevent(): Handle null device
https://bugs.freedesktop.org/show_bug.cgi?id=73930
-rw-r--r--src/udiskslinuxdriveobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udiskslinuxdriveobject.c b/src/udiskslinuxdriveobject.c
index defc5f5..80207cc 100644
--- a/src/udiskslinuxdriveobject.c
+++ b/src/udiskslinuxdriveobject.c
@@ -642,7 +642,7 @@ udisks_linux_drive_object_uevent (UDisksLinuxDriveObject *object,
else
{
udisks_warning ("Drive doesn't have device with sysfs path %s on remove event",
- g_udev_device_get_sysfs_path (device->udev_device));
+ device ? g_udev_device_get_sysfs_path (device->udev_device) : "(null device)");
}
}
else