diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-21 16:15:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-21 17:24:21 +0200 |
commit | 4c94096027f21d4ed0efe991534a926d39d52369 (patch) | |
tree | 5e148edac536bc86ef4817f6ea986591c19e8096 /src/core/socket.c | |
parent | 5ed1227238724959f020169f5332086439709b55 (diff) |
core: unify how we generate the prefix string when dumping unit state
Diffstat (limited to 'src/core/socket.c')
-rw-r--r-- | src/core/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 1189f451d2..7ca8edbda8 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -471,6 +471,7 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) { assert(s); assert(f); + prefix = strempty(prefix); prefix2 = strappenda(prefix, "\t"); fprintf(f, |