]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/socket.c
core: unify how we generate the prefix string when dumping unit state
[thirdparty/systemd.git] / src / core / socket.c
index 1189f451d2583e0b9f410b209cc2e4ff93202046..7ca8edbda80a2d219fe5d0e747b7097ebce34d66 100644 (file)
@@ -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,