diff options
Diffstat (limited to 'src/run/run.c')
-rw-r--r-- | src/run/run.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/run/run.c b/src/run/run.c index ff24373847..e75b027542 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -794,9 +794,12 @@ static int transient_service_set_properties(sd_bus_message *m, const char *pty_p e = getenv("TERM"); if (e) { - char *n; + _cleanup_free_ char *n = NULL; + + n = strjoin("TERM=", e); + if (!n) + return log_oom(); - n = strjoina("TERM=", e); r = sd_bus_message_append(m, "(sv)", "Environment", "as", 1, n); |