diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-14 02:29:45 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-14 02:29:45 +0200 |
commit | 4e85aff465b2ce0fa34222e52a6f5a984140b22e (patch) | |
tree | 6f33e8f35a0675b033755cebaea55817f6a753b2 /device.c | |
parent | c0b52914d23f6cc65bb67c77e2c5e7d58a6e8b9a (diff) |
execute: fix bad jump
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -248,9 +248,12 @@ static int device_process_new_device(Manager *m, struct udev_device *dev, bool u (model = udev_device_get_property_value(dev, "ID_MODEL"))) { if ((r = unit_set_description(u, model)) < 0) goto fail; - } else if (dn) + } else if (dn) { if ((r = unit_set_description(u, dn)) < 0) goto fail; + } else + if ((r = unit_set_description(u, sysfs)) < 0) + goto fail; if (wants) { FOREACH_WORD(w, l, wants, state) { |