summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-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 4ed06a6e51..63d0302d3b 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -265,7 +265,7 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p
char e[l+1];
memcpy(e, w, l);
- e[l] = 1;
+ e[l] = 0;
n = unit_name_mangle(e);
if (!n) {