summaryrefslogtreecommitdiff
path: root/src/rc-local-generator/rc-local-generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc-local-generator/rc-local-generator.c')
-rw-r--r--src/rc-local-generator/rc-local-generator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c
index 9fafa29f22..c219e77047 100644
--- a/src/rc-local-generator/rc-local-generator.c
+++ b/src/rc-local-generator/rc-local-generator.c
@@ -48,8 +48,7 @@ static int add_symlink(const char *service, const char *where) {
asprintf(&to, "%s/%s.wants/%s", arg_dest, where, service);
if (!from || !to) {
- log_error("Out of memory.");
- r = -ENOMEM;
+ r = log_oom();
goto finish;
}