From 999b600390a2dff43d3367119ad594b7c40ed50d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Dec 2013 20:53:55 +0100 Subject: systemctl: properly initialize and free sd_bus_error in "systemctl cat" We need to properly initialize all error structs before use and free them after use. Also, there's no point in flushing stdout if we output a \n anyway... --- src/core/service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/service.c') diff --git a/src/core/service.c b/src/core/service.c index 3b3f956380..67cf63099a 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1254,8 +1254,7 @@ static int service_load(Unit *u) { s->notify_access = NOTIFY_MAIN; if (s->type == SERVICE_DBUS || s->bus_name) { - r = unit_add_two_dependencies_by_name(u, UNIT_AFTER, UNIT_REQUIRES, - SPECIAL_DBUS_SOCKET, NULL, true); + r = unit_add_two_dependencies_by_name(u, UNIT_AFTER, UNIT_REQUIRES, SPECIAL_DBUS_SOCKET, NULL, true); if (r < 0) return r; } -- cgit v1.2.3-54-g00ecf