diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-03-14 08:23:52 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-03-14 08:31:08 -0400 |
commit | 51f2174037055da7d974b9f8739a98da7f493432 (patch) | |
tree | 102ce3ae1c512af7028f62691e1ef24f5c4b124e /src/core | |
parent | a0796d1c1fb3e1de044f1d199838ae6b8d81ce55 (diff) | |
parent | 5e1558f4a09e596561c9168384f2258e7c0718a1 (diff) |
Merge pull request #2834 from coling/master
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c index d201dc5e4b..28e4039da2 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -318,7 +318,7 @@ static int device_setup_unit(Manager *m, struct udev_device *dev, const char *pa * the GC to have garbaged it. That's desired since the device * unit may have a dependency on the mount unit which was * added during the loading of the later. */ - if (u && DEVICE(u)->state == DEVICE_PLUGGED) { + if (dev && u && DEVICE(u)->state == DEVICE_PLUGGED) { /* This unit is in plugged state: we're sure it's * attached to a device. */ if (!path_equal(DEVICE(u)->sysfs, sysfs)) { |