mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
core: fix return value on OOM
This commit is contained in:
parent
ddb64d8270
commit
c43b2132f3
@ -209,6 +209,8 @@ static int device_update_description(Unit *u, struct udev_device *dev, const cha
|
||||
j = strjoin(model, " ", label, NULL);
|
||||
if (j)
|
||||
r = unit_set_description(u, j);
|
||||
else
|
||||
r = -ENOMEM;
|
||||
} else
|
||||
r = unit_set_description(u, model);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user