summaryrefslogtreecommitdiff
path: root/src/core/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-21 16:15:49 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-21 17:24:21 +0200
commit4c94096027f21d4ed0efe991534a926d39d52369 (patch)
tree5e148edac536bc86ef4817f6ea986591c19e8096 /src/core/socket.c
parent5ed1227238724959f020169f5332086439709b55 (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.c1
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,