diff options
author | 2016-08-07 22:06:59 +0300 | |
---|---|---|
committer | 2016-08-07 22:06:59 +0300 | |
commit | 10d4d20a1e20587d7fab36e7679bf1991199f66d (patch) | |
tree | 308240cd1b751ed1acab48fb39acbf628f1ba002 /src/firejail/env.c | |
parent | implemented --overlay-clean (diff) | |
download | firejail-10d4d20a1e20587d7fab36e7679bf1991199f66d.tar.gz firejail-10d4d20a1e20587d7fab36e7679bf1991199f66d.tar.zst firejail-10d4d20a1e20587d7fab36e7679bf1991199f66d.zip |
remove unnecessary asprintf
Diffstat (limited to 'src/firejail/env.c')
-rw-r--r-- | src/firejail/env.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/firejail/env.c b/src/firejail/env.c index 1a6236407..a5b3ccfb3 100644 --- a/src/firejail/env.c +++ b/src/firejail/env.c | |||
@@ -132,12 +132,8 @@ void env_defaults(void) { | |||
132 | if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0) | 132 | if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0) |
133 | errExit("setenv"); | 133 | errExit("setenv"); |
134 | 134 | ||
135 | // build the window title and set it | 135 | // set the window title |
136 | char *title; | 136 | printf("\033]0;firejail %s\007\n", cfg.window_title); |
137 | if (asprintf(&title, "\033]0;firejail %s\007\n", cfg.window_title) == -1) | ||
138 | errExit("asprintf"); | ||
139 | printf("%s", title); | ||
140 | free(title); | ||
141 | } | 137 | } |
142 | 138 | ||
143 | // parse and store the environment setting | 139 | // parse and store the environment setting |