summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-05-06 19:56:29 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-05-06 19:58:03 +0200
commit7f629b74c4adc483dd5733bd9191b58cfbdd157f (patch)
treecff27989139c5830f9968139eb7b587bdde9478e
parentf7e3c6f5f8cc8e5d2e73c96bd3fcd6decde85d66 (diff)
device: avoid null pointer dereference
-rw-r--r--src/core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 2c56c5a2d..c09ea6c19 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -310,7 +310,7 @@ static int device_setup_unit(Manager *m, struct udev_device *dev, const char *pa
r = unit_name_from_path(path, ".device", &e);
if (r < 0)
- return log_unit_error_errno(u->id, r, "Failed to generate device name: %m");
+ return log_error_errno(r, "Failed to generate unit name from device path: %m");
u = manager_get_unit(m, e);