mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Make environ_set va_args and use it to tidy up some calls. Also add a
missing word in manpage (from jmc).
This commit is contained in:
2
tmux.c
2
tmux.c
@ -273,7 +273,7 @@ main(int argc, char **argv)
|
||||
for (var = environ; *var != NULL; var++)
|
||||
environ_put(global_environ, *var);
|
||||
if (getcwd(tmp, sizeof tmp) != NULL)
|
||||
environ_set(global_environ, "PWD", tmp);
|
||||
environ_set(global_environ, "PWD", "%s", tmp);
|
||||
|
||||
global_options = options_create(NULL);
|
||||
options_table_populate_tree(OPTIONS_TABLE_SERVER, global_options);
|
||||
|
Reference in New Issue
Block a user