]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: remove extra space character in output (#7250)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 7 Nov 2017 16:18:10 +0000 (16:18 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Nov 2017 16:18:10 +0000 (19:18 +0300)
> See "systemctl  status fail-stop.service" and "journalctl  -xe" for
> details.

src/shared/bus-unit-util.c

index 92a42b4718fa9f190fcace887d59c481399357e8..b891d2465329b92ecb5564ab6cfbea5ac180e18f 100644 (file)
@@ -1301,7 +1301,7 @@ static void log_job_error_with_service_result(const char* service, const char *r
 
         service_shell_quoted = shell_maybe_quote(service, ESCAPE_BACKSLASH);
 
-        if (extra_args) {
+        if (!strv_isempty((char**) extra_args)) {
                 _cleanup_free_ char *t;
 
                 t = strv_join((char**) extra_args, " ");