[systemd-commits] src/core
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Sat Feb 28 14:42:17 PST 2015
src/core/device.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c43b2132f37264600cc26e07c8d85dfdd6c969f0
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Feb 28 23:39:55 2015 +0100
core: fix return value on OOM
diff --git a/src/core/device.c b/src/core/device.c
index e41ed41..eb976b8 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -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
More information about the systemd-commits
mailing list